summaryrefslogtreecommitdiff
path: root/clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/p1.cpp
blob: 6ffa873cd46b9612d5546b6fd0970ae670d2b984 (about) (plain)
1
2
3
4
5
6
7
8
9
// 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}}