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