1 // Module Partition diagnostics 2 3 // RUN: rm -rf %t 4 // RUN: mkdir -p %t 5 // RUN: split-file %s %t 6 7 // RUN: %clang_cc1 -std=c++20 -fsyntax-only %t/bad-import.cpp -verify 8 9 // RUN: %clang_cc1 -std=c++20 -fsyntax-only %t/bad-partition.cpp -verify 10 11 //--- bad-import.cpp 12 13 import :B; // expected-error {{module partition imports must be within a module purview}} 14 15 //--- bad-partition.cpp 16 17 module; // expected-error {{missing 'module' declaration at end of global module fragment introduced here}} 18 19 import :Part; // expected-error {{module partition imports cannot be in the global module fragment}} 20