llvm-project/clang/test/Modules/pr101398.cppm
Chuanqi Xu be66c506c7
[C++20] [Modules] Emit Errors when compiling a non-module source as module (#102565)
Close https://github.com/llvm/llvm-project/issues/101398

The root cause of the issue is that I removed the codes before and
failed to recognize it in time and this was not found for a long time
due to it only crashes with invalid codes.
2024-08-09 13:39:24 +08:00

6 lines
206 B
C++

// RUN: mkdir -p %t
// RUN: %clang -std=c++20 -xc++-module %s -Xclang -verify --precompile -o %t/tmp.pcm
// not modules
// expected-error@* {{missing 'export module' declaration in module interface unit}}