llvm-for-llvmta/tools/clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/p1.cpp

10 lines
426 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 -pedantic %s
// Intentionally compiled as C++03 to test the extension warning.
namespace a {} // original
namespace a {} // ext
inline namespace b {} // inline original expected-warning {{inline namespaces are}}
inline namespace b {} // inline ext expected-warning {{inline namespaces are}}
inline namespace {} // inline unnamed expected-warning {{inline namespaces are}}