llvm-capstone/clang/test/Modules/reserved-names-2.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

7 lines
260 B
C++

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