[cfe-commits] r154193 - /cfe/trunk/test/SemaCXX/PR12481.cpp
Matt Beaumont-Gay
matthewbg at google.com
Fri Apr 6 11:47:27 PDT 2012
Author: matthewbg
Date: Fri Apr 6 13:47:27 2012
New Revision: 154193
URL: http://llvm.org/viewvc/llvm-project?rev=154193&view=rev
Log:
Test for r154189/PR12481
Added:
cfe/trunk/test/SemaCXX/PR12481.cpp
Added: cfe/trunk/test/SemaCXX/PR12481.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/PR12481.cpp?rev=154193&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/PR12481.cpp (added)
+++ cfe/trunk/test/SemaCXX/PR12481.cpp Fri Apr 6 13:47:27 2012
@@ -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;
More information about the cfe-commits
mailing list