3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 %t/m1.cppm -emit-module-interface -o %t/m1.pcm
6 // RUN: %clang_cc1 -std=c++20 %t/m2.cppm -emit-module-interface -o %t/m2.pcm
7 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/use.cc -fsyntax-only \
10 // RUN: %clang_cc1 -std=c++20 %t/m1.cppm -Wall -emit-module-interface -o %t/m1.pcm
11 // RUN: %clang_cc1 -std=c++20 %t/m2.cppm -Wall -emit-module-interface -o %t/m2.pcm
12 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/use.cc -fsyntax-only \
15 // RUN: %clang_cc1 -std=c++20 %t/m1.cppm -Wdecls-in-multiple-modules -emit-module-interface -o %t/m1.pcm
16 // RUN: %clang_cc1 -std=c++20 %t/m2.cppm -Wdecls-in-multiple-modules -emit-module-interface -o %t/m2.pcm
17 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/use.cc -fsyntax-only \
18 // RUN: -verify -Wdecls-in-multiple-modules -DWARNING
76 // expected-no-diagnostics
78 // expected-warning@* {{declaration 'E' is detected to be defined in multiple module units}}
79 // expected-warning@* {{declaration 'foo' is detected to be defined in multiple module units}}
80 // expected-warning@* {{declaration 'a' is detected to be defined in multiple module units}}
81 // expected-warning@* {{declaration 'func' is detected to be defined in multiple module units}}
82 // expected-note@* 1+ {{}}