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 Sambuctemplate <class T> void foo(T t) { new ImplicitCtor; } bar()10*0a6a1f1dSLionel Sambucvoid bar() { foo(0); } 11*0a6a1f1dSLionel Sambuc // CHECK: store {{.*}} @"\01??_7ImplicitCtor@vtable_referenced_from_template@@6B@" 12*0a6a1f1dSLionel Sambuc } 13