Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Parser / namespace-attributes.cpp
blob9f925b742dfebd3906ed88a4cad607c653e200a8
1 // RUN: %clang_cc1 -std=c++17 -verify %s
3 namespace __attribute__(()) A
7 namespace A __attribute__(())
11 namespace __attribute__(()) [[]] A
15 namespace [[]] __attribute__(()) A
19 namespace A __attribute__(()) [[]]
23 namespace A [[]] __attribute__(())
27 namespace [[]] A __attribute__(())
31 namespace __attribute__(()) A [[]]
35 namespace A::B __attribute__(()) // expected-error{{attributes cannot be specified on a nested namespace definition}}
39 namespace __attribute__(()) A::B // expected-error{{attributes cannot be specified on a nested namespace definition}}