diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2012-04-06 18:47:27 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2012-04-06 18:47:27 +0000 |
commit | 0121183f71c2de2fced72fa0afa34b0ce31235e3 (patch) | |
tree | ef2dc7554d8cc426575b0f8120903b7233bda5d8 /test/SemaCXX | |
parent | 30fa3707c440222f65fcbb78ee8677462ea0d9ce (diff) |
Test for r154189/PR12481
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154193 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX')
-rw-r--r-- | test/SemaCXX/PR12481.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/SemaCXX/PR12481.cpp b/test/SemaCXX/PR12481.cpp new file mode 100644 index 0000000000..9487e4dc89 --- /dev/null +++ b/test/SemaCXX/PR12481.cpp @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -x c++ -fsyntax-only %s + +class C1 { }; +class C2 { }; +template<class TrieData> struct BinaryTrie { + ~BinaryTrie() { + (void)(({ + static int x = 5; + } + )); + } +}; +class FooTable { + BinaryTrie<C1> c1_trie_; + BinaryTrie<C2> c2_trie_; +}; +FooTable* foo = new FooTable; |