| // RUN: %clang_cc1 -std=c++17 -verify %s | |
| namespace __attribute__(()) A | |
| { | |
| } | |
| namespace A __attribute__(()) [[]] // expected-error {{an attribute list cannot appear here}} | |
| { | |
| } | |
| namespace A [[]] __attribute__(()) // expected-error {{an attribute list cannot appear here}} | |
| { | |
| } | |
| namespace [[]] A __attribute__(()) | |
| { | |
| } | |
| namespace [[]] __attribute__(()) A | |
| { | |
| } | |
| namespace __attribute__(()) [[]] A | |
| { | |
| } | |
| namespace __attribute__(()) A [[]] // expected-error {{an attribute list cannot appear here}} | |
| { | |
| } | |
| namespace A::B __attribute__(()) // expected-error {{attributes cannot be specified on a nested namespace definition}} | |
| { | |
| } | |
| namespace __attribute__(()) A::B // expected-error {{attributes cannot be specified on a nested namespace definition}} | |
| { | |
| } |