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 | f3db00335894ca4c11263e36004527af43328ee0 (patch) | |
| tree | 1e9da430a058dc75770543e21c7fad462dcdbcb2 /clang/test/SemaTemplate/instantiate-anonymous-union.cpp | |
| parent | 11395b66c6c59e8f68b4b00fc71aeacdd683911c (diff) | |
| download | bcm5719-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.cpp | 8 |
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; + |

