Add PR check to suggest alternatives to using undef (#118506)
[llvm-project.git] / clang / test / Parser / cxx1z-attributes.cpp
blob1267091ab25354193ba3c73aeea66bce6d945bc5
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z %s
3 namespace [[]] foo {}
4 namespace [[]] {}
5 namespace [[]] bad = foo; // expected-error {{attributes cannot be specified on namespace alias}}
7 namespace [[]] A::B {} // expected-error {{attributes cannot be specified on a nested namespace definition}}
9 enum test {
10 bing [[]],
11 bar [[]] = 1,
12 baz [[]][[]],
13 quux [[]][[]] = 4