llvm-project/clang/test/Parser/namespace-alias-attr.cpp
David Majnemer 22fe771f78 Parse: __attribute__((keyword)) shouldn't error
Weird constructs like __attribute__((inline)) or
__attibute__((typename)) should result in warnings, not errors.

llvm-svn: 225118
2015-01-03 19:41:00 +00:00

9 lines
164 B
C++

// RUN: %clang_cc1 -verify %s
namespace A
{
}
namespace B __attribute__ (( static )) = A; // expected-error{{attributes cannot be specified on namespace alias}}