brintos

brintos / llvm-project-archived public Read only

0
0
Text · 458 B · 4389be9 Raw
22 lines · cpp
1// RUN: rm -rf %t2// RUN: split-file %s %t3 4 5// RUN: %clang -std=c++20 -fmodule-header %t/A.h -o %t/A.pcm6// RUN: %clang -std=c++20 -fmodule-header %t/B.h -o %t/B.pcm7// RUN: %clang -std=c++20 -fsyntax-only -fmodule-file=%t/A.pcm -fmodule-file=%t/B.pcm %t/main.cpp8 9//--- A.h10// expected-no-diagnostics11enum { A = 0 };12 13//--- B.h14// expected-no-diagnostics15enum { B = 1 };16 17//--- main.cpp18// expected-no-diagnostics19import "A.h";20import "B.h";21int main() {}22