llvm-capstone/clang/test/Modules/reserved-names-3.cppm
Chuanqi Xu c1f76363e0 [C++20] [Modules] Continue parsing after we found reserved module names
Close https://github.com/llvm/llvm-project/issues/62112

In the previous change, we'll stop parsing directly after we found
reserved module names. But this may be too aggressive. This patch
changes this. Note that the parsing will still be stopped if the module
name is `module` or `import`.
2023-04-13 15:14:34 +08:00

8 lines
280 B
C++

// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
// expected-no-diagnostics
// Demonstrate that we don't consider use of 'std' (potentially followed by
// zero or more digits) to be a reserved identifier if it is not the only part
// of the path.
export module std12Three;