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 | bcec05c9fda9cfcc2fa11837ea8aae075db41668 (patch) | |
| tree | 14916ea7c26870cddc98cd1457167d41bb0d31d5 /clang/test | |
| parent | 62215c4fb594ca671ca9b16e206789ebeed9b68a (diff) | |
| download | bcm5719-llvm-bcec05c9fda9cfcc2fa11837ea8aae075db41668.tar.gz bcm5719-llvm-bcec05c9fda9cfcc2fa11837ea8aae075db41668.zip | |
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.
llvm-svn: 80662
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/SemaTemplate/instantiate-anonymous-union.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/SemaTemplate/instantiate-anonymous-union.cpp b/clang/test/SemaTemplate/instantiate-anonymous-union.cpp index 2c1e9d4c191..375c1da3ca5 100644 --- a/clang/test/SemaTemplate/instantiate-anonymous-union.cpp +++ b/clang/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); |

