1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 2 3 namespace NIL {} // expected-note {{previous definition}} 4 inline namespace NIL {} // expected-error {{cannot be reopened as inline}} 5 inline namespace IL {} // expected-note {{previous definition}} 6 namespace IL {} // expected-warning{{inline namespace cannot be reopened as a non-inline namespace}} 7 8 namespace {} // expected-note {{previous definition}} 9 inline namespace {} // expected-error {{cannot be reopened as inline}} 10 namespace X { 11 inline namespace {} // expected-note {{previous definition}} 12 namespace {} // expected-warning {{cannot be reopened as a non-inline namespace}} 13 } 14