2014-11-08 23:33:35 +08:00
|
|
|
// 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}}
|
|
|
|
|
2014-11-09 01:09:50 +08:00
|
|
|
namespace [[]] A::B {} // expected-error {{attributes cannot be specified on a nested namespace definition}}
|
|
|
|
|
2014-11-08 23:33:35 +08:00
|
|
|
enum test {
|
|
|
|
bing [[]],
|
|
|
|
bar [[]] = 1,
|
|
|
|
baz [[]][[]],
|
|
|
|
quux [[]][[]] = 4
|
|
|
|
};
|