aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-anonymous-union.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-01 06:22:14 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-01 06:22:14 +0000
commitcdc83c777973fa56b6f828bfe88210290ca58d62 (patch)
tree1c99b418de094a79ceb19ba8a9e5825c60b31eea /test/SemaTemplate/instantiate-anonymous-union.cpp
parentc17fb7bd9a06b027c792c7dfad7e9fa430277aff (diff)
Don't assume that a base is always a RecordType, it can also be a TemplateSpecializationType. Also, make sure to get the instantiated union member.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-anonymous-union.cpp')
-rw-r--r--test/SemaTemplate/instantiate-anonymous-union.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/SemaTemplate/instantiate-anonymous-union.cpp b/test/SemaTemplate/instantiate-anonymous-union.cpp
index 2c1e9d4c19..375c1da3ca 100644
--- a/test/SemaTemplate/instantiate-anonymous-union.cpp
+++ b/test/SemaTemplate/instantiate-anonymous-union.cpp
@@ -1,6 +1,4 @@
-// RUN: clang-cc -fsyntax-only %s
-
-// FIXME: We need to test anonymous structs/unions in templates for real.
+// RUN: clang-cc -fsyntax-only %s -Wall
template <typename T> class A { struct { }; };
@@ -30,4 +28,4 @@ template <typename T> struct C {
C(void* b) : b(b) { }
};
-C<int> c0;
+C<int> c0(0);