| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: split-file %s %t |
| 3 |
|
| 4 |
// RUN: %clang_cc1 -std=c++2a %t/pmf_in_interface.cpp -verify |
| 5 |
// RUN: %clang_cc1 -std=c++2a %t/pmf_in_interface.cpp -emit-module-interface -o %t.pcm |
| 6 |
// RUN: %clang_cc1 -std=c++2a %t/pmf_in_implementation.cpp -verify -fmodule-file=M=%t.pcm |
| 7 |
|
| 8 |
|
| 9 |
//--- pmf_in_interface.cpp |
| 10 |
// expected-no-diagnostics |
| 11 |
export module M; |
| 12 |
module :private; |
| 13 |
|
| 14 |
//--- pmf_in_implementation.cpp |
| 15 |
module M; // expected-note {{add 'export' here}} |
| 16 |
module :private; // expected-error {{private module fragment in module implementation unit}} |