]> granicus.if.org Git - clang/commitdiff
Test for r154189/PR12481
authorMatt Beaumont-Gay <matthewbg@google.com>
Fri, 6 Apr 2012 18:47:27 +0000 (18:47 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Fri, 6 Apr 2012 18:47:27 +0000 (18:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154193 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/PR12481.cpp [new file with mode: 0644]

diff --git a/test/SemaCXX/PR12481.cpp b/test/SemaCXX/PR12481.cpp
new file mode 100644 (file)
index 0000000..9487e4d
--- /dev/null
@@ -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;