Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Modules / cxx20-partition-diagnostics-a.cpp
blob7d7e6391373857f81b93e5fc843a7c88fe77ef33
1 // Module Partition diagnostics
3 // RUN: rm -rf %t
4 // RUN: mkdir -p %t
5 // RUN: split-file %s %t
7 // RUN: %clang_cc1 -std=c++20 -fsyntax-only %t/bad-import.cpp -verify
9 // RUN: %clang_cc1 -std=c++20 -fsyntax-only %t/bad-partition.cpp -verify
11 //--- bad-import.cpp
13 import :B; // expected-error {{module partition imports must be within a module purview}}
15 //--- bad-partition.cpp
17 module; // expected-error {{missing 'module' declaration at end of global module fragment introduced here}}
19 import :Part; // expected-error {{module partition imports cannot be in the global module fragment}}