Home | History | Annotate | Download | only in Parser
      1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z %s
      2 
      3 namespace [[]] foo {}
      4 namespace [[]] {}
      5 namespace [[]] bad = foo; // expected-error {{attributes cannot be specified on namespace alias}}
      6 
      7 namespace [[]] A::B {} // expected-error {{attributes cannot be specified on a nested namespace definition}}
      8 
      9 enum test {
     10   bing [[]],
     11   bar [[]] = 1,
     12   baz [[]][[]],
     13   quux [[]][[]] = 4
     14 };
     15