1 // RUN: %llvmgcc -S -g %s -o - | llc --disable-cfi -O0 -o %t.s 2 // RUN: %compile_c %t.s -o %t.o 3 // PR4025 4 5 template <typename _Tp> class vector 6 { 7 public: ~vector()8 ~vector () 9 { 10 } 11 }; 12 13 class Foo 14 { 15 ~Foo(); 16 class FooImpl *impl_; 17 }; 18 19 namespace { 20 class Bar; 21 } 22 23 class FooImpl 24 { 25 vector<Bar*> thing; 26 }; 27 ~Foo()28Foo::~Foo() 29 { 30 delete impl_; 31 } 32 33