Teach TreeTransform how to transform a pack expansion type into
[clang.git] / test / CodeGenCXX / specialized-static-data-mem-init.cpp
blob8f5765bcbbe9f657901073a92a1d5dcd8e7488ec
1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2 // rdar: // 8562966
3 // pr8409
5 // CHECK: @_ZN1CIiE11needs_guardE = weak global
6 // CHECK: @_ZGVN1CIiE11needs_guardE = weak global
8 struct K
10 K();
11 K(const K &);
12 ~K();
13 void PrintNumK();
16 template<typename T>
17 struct C
19 void Go() { needs_guard.PrintNumK(); }
20 static K needs_guard;
23 template<typename T> K C<T>::needs_guard;
25 void F()
27 C<int>().Go();