xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/PR12481.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x c++ -fsyntax-only %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc class C1 { };
4*f4a2713aSLionel Sambuc class C2 { };
5*f4a2713aSLionel Sambuc template<class TrieData> struct BinaryTrie {
~BinaryTrieBinaryTrie6*f4a2713aSLionel Sambuc   ~BinaryTrie() {
7*f4a2713aSLionel Sambuc     (void)(({
8*f4a2713aSLionel Sambuc       static int x = 5;
9*f4a2713aSLionel Sambuc     }
10*f4a2713aSLionel Sambuc     ));
11*f4a2713aSLionel Sambuc   }
12*f4a2713aSLionel Sambuc };
13*f4a2713aSLionel Sambuc class FooTable {
14*f4a2713aSLionel Sambuc   BinaryTrie<C1> c1_trie_;
15*f4a2713aSLionel Sambuc   BinaryTrie<C2> c2_trie_;
16*f4a2713aSLionel Sambuc };
17*f4a2713aSLionel Sambuc FooTable* foo = new FooTable;
18