You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
455 B
14 lines
455 B
// RUN: %clang_cc1 -fsyntax-only -Wall -verify -std=c++11 %s
|
|
// RUN: %clang_cc1 -fsyntax-only -Wall -Wno-inline-namespace-reopened-noninline -DSILENCE -verify -std=c++11 %s
|
|
|
|
namespace X {
|
|
#ifndef SILENCE
|
|
inline namespace {} // expected-note {{previous definition}}
|
|
namespace {} // expected-warning {{inline namespace reopened as a non-inline namespace}}
|
|
#else
|
|
// expected-no-diagnostics
|
|
inline namespace {}
|
|
namespace {}
|
|
#endif
|
|
}
|