1 // RUN: %clang_cc1 -emit-llvm -fdelayed-template-parsing -std=c++11 -o - -triple=i386-pc-win32 %s > %t
2 // RUN: FileCheck %s < %t
3 
4 // PR20671
5 namespace vtable_referenced_from_template {
6 struct ImplicitCtor {
7   virtual ~ImplicitCtor();
8 };
foo(T t)9 template <class T> void foo(T t) { new ImplicitCtor; }
bar()10 void bar() { foo(0); }
11 // CHECK: store {{.*}} @"??_7ImplicitCtor@vtable_referenced_from_template@@6B@"
12 }
13