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