xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/microsoft-abi-structors-delayed-template.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -fdelayed-template-parsing -std=c++11 -o - -triple=i386-pc-win32 %s > %t
2*0a6a1f1dSLionel Sambuc // RUN: FileCheck %s < %t
3*0a6a1f1dSLionel Sambuc 
4*0a6a1f1dSLionel Sambuc // PR20671
5*0a6a1f1dSLionel Sambuc namespace vtable_referenced_from_template {
6*0a6a1f1dSLionel Sambuc struct ImplicitCtor {
7*0a6a1f1dSLionel Sambuc   virtual ~ImplicitCtor();
8*0a6a1f1dSLionel Sambuc };
foo(T t)9*0a6a1f1dSLionel Sambuc template <class T> void foo(T t) { new ImplicitCtor; }
bar()10*0a6a1f1dSLionel Sambuc void bar() { foo(0); }
11*0a6a1f1dSLionel Sambuc // CHECK: store {{.*}} @"\01??_7ImplicitCtor@vtable_referenced_from_template@@6B@"
12*0a6a1f1dSLionel Sambuc }
13