Chuanqi Xu 676b48d1cc [C++20] [Modules] Diagnose if import statement lakcs a semicolon
Close https://github.com/llvm/llvm-project/issues/121066

Now we will diagnose that the import statement lacks a semicolon as
expected. Note that the original "not found" diagnose message remains.
I meant to remove that, but the test shows it might be more complex
process (other unexpected diagnose shows up). Given the importance of
the issue, I chose to not dig deeper.
2024-12-25 17:45:28 +08:00

5 lines
180 B
C++

// RUN: %clang_cc1 -std=c++20 -fsyntax-only %s -verify
import mod // expected-error {{expected ';' after module name}}
// expected-error@-1 {{module 'mod' not found}}