summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-anonymous-union.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-08-28 22:03:51 +0000
committerDouglas Gregor <dgregor@apple.com>2009-08-28 22:03:51 +0000
commitf3db00335894ca4c11263e36004527af43328ee0 (patch)
tree1e9da430a058dc75770543e21c7fad462dcdbcb2 /clang/test/SemaTemplate/instantiate-anonymous-union.cpp
parent11395b66c6c59e8f68b4b00fc71aeacdd683911c (diff)
downloadbcm5719-llvm-f3db00335894ca4c11263e36004527af43328ee0.tar.gz
bcm5719-llvm-f3db00335894ca4c11263e36004527af43328ee0.zip
Don't crash when instantiating templates containing anonymous structs/unions
llvm-svn: 80397
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-anonymous-union.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-anonymous-union.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/instantiate-anonymous-union.cpp b/clang/test/SemaTemplate/instantiate-anonymous-union.cpp
new file mode 100644
index 00000000000..4eb5b0c24cb
--- /dev/null
+++ b/clang/test/SemaTemplate/instantiate-anonymous-union.cpp
@@ -0,0 +1,8 @@
+// RUN: clang-cc -fsyntax-only %s
+
+// FIXME: We need to test anonymous structs/unions in templates for real.
+
+template <typename T> class A { struct { }; };
+
+A<int> a0;
+
OpenPOWER on IntegriCloud