diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-08-28 22:03:51 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-08-28 22:03:51 +0000 |
commit | a5bf7f13d7772b164750997f95ab18487bbc4114 (patch) | |
tree | cd3216ac7962fc5191afa88295c14813592e9418 /test/SemaTemplate/instantiate-anonymous-union.cpp | |
parent | 3cd4d1ece34d36317ec5352855d86e256cb6aa27 (diff) |
Don't crash when instantiating templates containing anonymous structs/unions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-anonymous-union.cpp')
-rw-r--r-- | test/SemaTemplate/instantiate-anonymous-union.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-anonymous-union.cpp b/test/SemaTemplate/instantiate-anonymous-union.cpp new file mode 100644 index 0000000000..4eb5b0c24c --- /dev/null +++ b/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; + |