clang/test/Modules/reserved-names-system-header-2.cpp
raw| 1 | // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s |
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | module; |
| 5 | // Show that we suppress the reserved identifier diagnostic in a system header. |
| 6 | # 100 "file.cpp" 1 3 // Enter a system header |
| 7 | export module __test; |
| 8 | # 100 "file.cpp" 2 3 // Leave the system header |