Skip to content

Commit

Permalink
Verify that Clang and Flang do not accept -fopenacc
Browse files Browse the repository at this point in the history
  • Loading branch information
mjklemm committed Oct 20, 2024
1 parent ccd0626 commit f9df236
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions clang/test/Driver/no-fopenacc.cpp
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'}}
7 changes: 7 additions & 0 deletions flang/test/Driver/no-openacc.f90
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'}}

0 comments on commit f9df236

Please sign in to comment.