// RUN: %clang_cc1 -std=c++17 -verify %s
namespace__attribute__(()) A
{}namespaceA__attribute__(()){}namespace__attribute__(())[[]] A
{}namespace[[]]__attribute__(()) A
{}namespaceA__attribute__(())[[]]{}namespaceA[[]]__attribute__(()){}namespace[[]] A __attribute__(()){}namespace__attribute__(()) A [[]]{}namespaceA::B__attribute__(())// expected-error{{attributes cannot be specified on a nested namespace definition}}
{}namespace__attribute__(()) A::B // expected-error{{attributes cannot be specified on a nested namespace definition}}
{}