diff --git a/clang/test/Modules/preprocess-named-modules.cppm b/clang/test/Modules/preprocess-named-modules.cppm new file mode 100644 index 00000000000000..67a6cc384a1c7c --- /dev/null +++ b/clang/test/Modules/preprocess-named-modules.cppm @@ -0,0 +1,7 @@ +// Tests tht when we preprocess a source, the compiler won't +// require to load the named modules after import. +// +// RUN: %clang_cc1 -std=c++20 -E %s -o - | FileCheck %s +import non_exist_modules; + +// CHECK: import non_exist_modules;