brintos

brintos / llvm-project-archived public Read only

0
0
Text · 741 B · 11bf871 Raw
38 lines · cpp
1// RUN: %clang_cc1 -std=c++17 -verify %s2 3namespace __attribute__(()) A4{5}6 7namespace A __attribute__(()) [[]] // expected-error {{an attribute list cannot appear here}}8{9}10 11namespace A [[]] __attribute__(()) // expected-error {{an attribute list cannot appear here}}12{13}14 15namespace [[]] A __attribute__(())16{17}18 19namespace [[]] __attribute__(()) A20{21}22 23namespace __attribute__(()) [[]] A24{25}26 27namespace __attribute__(()) A [[]] // expected-error {{an attribute list cannot appear here}}28{29}30 31namespace A::B __attribute__(()) // expected-error {{attributes cannot be specified on a nested namespace definition}}32{33}34 35namespace __attribute__(()) A::B // expected-error {{attributes cannot be specified on a nested namespace definition}}36{37}38