brintos

brintos / llvm-project-archived public Read only

0
0
Text · 773 B · 0abc5c6 Raw
26 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir %t3// RUN: split-file %s %t4//5// RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-module-interface -o %t/a.pcm6// RUN: %clang_cc1 -std=c++20 %t/user.cpp -fmodule-file=%t/a.pcm -fsyntax-only \7// RUN:    2>&1 | FileCheck %t/user.cpp8// RUN: %clang_cc1 -std=c++20 %t/b.cppm -emit-module-interface -o %t/b.pcm \9// RUN:    -fprebuilt-module-path=%t10// RUN: %clang_cc1 -std=c++20 %t/b.pcm \11// RUN:    -fprebuilt-module-path=%t -emit-llvm 2>&1 -o - | FileCheck %t/b.cppm12 13//--- a.cppm14export module a;15 16//--- b.cppm17export module b;18import a;19 20// CHECK-NOT: warning21 22//--- user.cpp23import a;24 25// CHECK: the form '-fmodule-file=<BMI-path>' is deprecated for standard C++ named modules; consider to use '-fmodule-file=<module-name>=<BMI-path>' instead26