3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/Hello.cppm -o %t/Hello.pcm
6 // RUN: not %clang_cc1 -std=c++20 -fopenmp %t/use.cpp -fmodule-file=hello=%t/Hello.pcm -fsyntax-only \
7 // RUN: 2>&1 | FileCheck %t/use.cpp
8 // RUN: not %clang_cc1 -std=c++20 -fopenmp %t/use2.cpp -fmodule-file=hello=%t/Hello.pcm -fsyntax-only \
9 // RUN: 2>&1 | FileCheck %t/use2.cpp
11 // RUN: %clang_cc1 -std=c++20 -fopenmp -emit-module-interface %t/Hello.cppm -o %t/Hello.pcm
12 // RUN: %clang_cc1 -std=c++20 -fopenmp %t/use.cpp -fmodule-file=hello=%t/Hello.pcm -fsyntax-only -verify
13 // RUN: %clang_cc1 -std=c++20 -fopenmp %t/use2.cpp -fmodule-file=hello=%t/Hello.pcm -fsyntax-only -verify
22 // expected-no-diagnostics
30 // CHECK: OpenMP{{.*}}differs in PCH file vs. current file
33 // expected-no-diagnostics
36 #pragma omp parallel for
42 // CHECK: OpenMP{{.*}}differs in PCH file vs. current file
43 // CHECK: use of undeclared identifier 'pragma'