summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-17 19:49:00 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-17 19:49:00 +0000
commit6b6bba4a2087638f0cdec23f0d0f2088be68019c (patch)
treed7fe9c1746a167061c7f8c04fbf15b731c7422db /clang/test
parentba93ea76326a11a1400fa335d2810e19e859f3a5 (diff)
downloadbcm5719-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.cpp8
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}}
+
OpenPOWER on IntegriCloud