We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clang/test/OpenMP/bug59944.c
1 parent 2329a92 commit b561c5cCopy full SHA for b561c5c
clang/test/OpenMP/bug59944.c
@@ -1,11 +1,9 @@
1
-// RUN: %clang_cc1 -fopenmp -fopenmp-version=52 -x c -triple x86_64-apple-darwin10 %s -o - 2>&1 | FileCheck %s --check-prefix=CHECK
+// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=52 -x c -triple x86_64-apple-darwin10 %s
2
3
extern int omp_get_initial_device();
4
extern void *omp_get_mapped_ptr(void *, int);
5
6
void t() {
7
- omp_get_mapped_ptr(&x, omp_get_initial_device());
+ omp_get_mapped_ptr(&x, omp_get_initial_device()); //expected-error {{use of undeclared identifier 'x'}}
8
}
9
10
-// CHECK: error: use of undeclared identifier 'x'
11
-// CHECK-NOT: crash
0 commit comments