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