Skip to content

Commit b561c5c

Browse files
committed
[Clang] Fix test case clang/test/OpenMP/bug59944.c
1 parent 2329a92 commit b561c5c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/test/OpenMP/bug59944.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
1+
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=52 -x c -triple x86_64-apple-darwin10 %s
22

33
extern int omp_get_initial_device();
44
extern void *omp_get_mapped_ptr(void *, int);
55

66
void t() {
7-
omp_get_mapped_ptr(&x, omp_get_initial_device());
7+
omp_get_mapped_ptr(&x, omp_get_initial_device()); //expected-error {{use of undeclared identifier 'x'}}
88
}
99

10-
// CHECK: error: use of undeclared identifier 'x'
11-
// CHECK-NOT: crash

0 commit comments

Comments
 (0)