forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify that Clang and Flang do not accept -fopenacc
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Verify that -fopenacc produces an error message. | ||
|
||
// RUN: not %clang -fopenacc %s 2>&1 | FileCheck %s | ||
// CHECK: {{clang: error: unknown argument: '-fopenacc'}} | ||
|
||
// RUN: not %clang -cc1 -fopenacc %s 2>&1 | FileCheck -check-prefix CHECK-CC1 %s | ||
// CHECK-CC1: {{error: unknown argument: '-fopenacc'}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
! Verify that -fopenacc produces an error message. | ||
|
||
! RUN: not %flang -fopenacc %s 2>&1 | FileCheck %s | ||
! CHECK: {{flang.*: error: unknown argument: '-fopenacc'}} | ||
|
||
! RUN: not %flang_fc1 -fopenacc %s 2>&1 | FileCheck --check-prefix CHECK-FC1 %s | ||
! CHECK-FC1: {{error: unknown argument: '-fopenacc'}} |