[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / specialized-static-data-mem-init.cpp
blob32afe95531f97f95434b5c11b3fbb872a9a71428
1 // RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
2 // pr8409
4 // CHECK: @_ZN1CIiE11needs_guardE = linkonce_odr {{(dso_local )?}}global
5 // CHECK: @_ZGVN1CIiE11needs_guardE = linkonce_odr {{(dso_local )?}}global
7 struct K
9 K();
10 K(const K &);
11 ~K();
12 void PrintNumK();
15 template<typename T>
16 struct C
18 void Go() { needs_guard.PrintNumK(); }
19 static K needs_guard;
22 template<typename T> K C<T>::needs_guard;
24 void F()
26 C<int>().Go();