1 // Module Partition diagnostics
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
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}}