1 // RUN: rm -rf %t 2 // RUN: mkdir %t 3 // RUN: split-file %s %t 4 5 // RUN: %clang_cc1 -std=c++20 %t/parta.cppm -o %t/mod-parta.pcm -fsyntax-only -verify 6 // RUN: %clang_cc1 -std=c++20 %t/impl.cppm -o %t/mod-impl.pcm -fsyntax-only -verify 7 // RUN: %clang_cc1 -std=c++20 %t/primary.cppm -o %t/mod.pcm -fsyntax-only -verify 8 9 //--- parta.cppm 10 export module mod:parta; 11 12 module :private; // expected-error {{private module fragment declaration with no preceding module declaration}} 13 14 //--- impl.cppm 15 16 module mod:impl; 17 18 module :private; // expected-error {{private module fragment declaration with no preceding module declaration}} 19 20 //--- primary.cppm 21 //expected-no-diagnostics 22 export module mod; 23 24 module :private; 25 26