Author: Shilei Tian Date: 2023-01-20T16:41:03-05:00 New Revision: b561c5c149467c98094c87c0e0d07c3b05f17780
URL: https://github.com/llvm/llvm-project/commit/b561c5c149467c98094c87c0e0d07c3b05f17780 DIFF: https://github.com/llvm/llvm-project/commit/b561c5c149467c98094c87c0e0d07c3b05f17780.diff LOG: [Clang] Fix test case `clang/test/OpenMP/bug59944.c` Added: Modified: clang/test/OpenMP/bug59944.c Removed: ################################################################################ diff --git a/clang/test/OpenMP/bug59944.c b/clang/test/OpenMP/bug59944.c index 6d061b51d5059..41cf3fb616eea 100644 --- a/clang/test/OpenMP/bug59944.c +++ b/clang/test/OpenMP/bug59944.c @@ -1,11 +1,9 @@ -// 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 extern int omp_get_initial_device(); extern void *omp_get_mapped_ptr(void *, int); void t() { - 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'}} } -// CHECK: error: use of undeclared identifier 'x' -// CHECK-NOT: crash _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits