xref: /llvm-project/clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/p1.cpp (revision 5a5f2c76b6f70c207df50ebb6c7c467cc9e64407)
1*5a5f2c76SSebastian Redl // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 -pedantic %s
2*5a5f2c76SSebastian Redl 
3*5a5f2c76SSebastian Redl // Intentionally compiled as C++03 to test the extension warning.
46766794cSSebastian Redl 
56766794cSSebastian Redl namespace a {} // original
66766794cSSebastian Redl namespace a {} // ext
7*5a5f2c76SSebastian Redl inline namespace b {} // inline original expected-warning {{inline namespaces are}}
8*5a5f2c76SSebastian Redl inline namespace b {} // inline ext expected-warning {{inline namespaces are}}
9*5a5f2c76SSebastian Redl inline namespace {} // inline unnamed expected-warning {{inline namespaces are}}
10