diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-01 06:22:14 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-01 06:22:14 +0000 |
commit | cdc83c777973fa56b6f828bfe88210290ca58d62 (patch) | |
tree | 1c99b418de094a79ceb19ba8a9e5825c60b31eea /test/SemaTemplate/instantiate-anonymous-union.cpp | |
parent | c17fb7bd9a06b027c792c7dfad7e9fa430277aff (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.cpp | 6 |
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); |