blob: 9f925b742dfebd3906ed88a4cad607c653e200a8 [file] [log] [blame]
// RUN: %clang_cc1 -std=c++17 -verify %s
namespace __attribute__(()) A
{
}
namespace A __attribute__(())
{
}
namespace __attribute__(()) [[]] A
{
}
namespace [[]] __attribute__(()) A
{
}
namespace A __attribute__(()) [[]]
{
}
namespace A [[]] __attribute__(())
{
}
namespace [[]] A __attribute__(())
{
}
namespace __attribute__(()) A [[]]
{
}
namespace A::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}}
{
}