diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-06-17 19:49:00 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-06-17 19:49:00 +0000 |
commit | 6b6bba4a2087638f0cdec23f0d0f2088be68019c (patch) | |
tree | d7fe9c1746a167061c7f8c04fbf15b731c7422db /clang/test | |
parent | ba93ea76326a11a1400fa335d2810e19e859f3a5 (diff) | |
download | bcm5719-llvm-6b6bba4a2087638f0cdec23f0d0f2088be68019c.tar.gz bcm5719-llvm-6b6bba4a2087638f0cdec23f0d0f2088be68019c.zip |
Diagnose the use of attributes on namespace aliases, from Anis Ahmad
llvm-svn: 73626
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Parser/namespace-alias-attr.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Parser/namespace-alias-attr.cpp b/clang/test/Parser/namespace-alias-attr.cpp new file mode 100644 index 00000000000..9e4072cde22 --- /dev/null +++ b/clang/test/Parser/namespace-alias-attr.cpp @@ -0,0 +1,8 @@ +// RUN: clang-cc -verify %s + +namespace A +{ +} + +namespace B __attribute__ (( static )) = A; // expected-error{{attributes can not be specified on namespace alias}} + |