3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/parta.cppm -o %t/mod-parta.pcm -fsyntax-only -verify
6 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/impl.cppm -o %t/mod-impl.pcm -fsyntax-only -verify
7 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/primary.cppm -o %t/mod.pcm -fsyntax-only -verify
10 export module mod
:parta
;
12 module
:private; // expected-error {{private module fragment declaration with no preceding module declaration}}
18 module
:private; // expected-error {{private module fragment declaration with no preceding module declaration}}
21 //expected-no-diagnostics