Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / 2006-09-12-OpaqueStructCrash.cpp
blobc5a2d5abc3efe26e549530b870fb5896f1e9f17b
1 // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s
2 // RUN: %clang_cc1 -triple %ms_abi_triple -fno-rtti -emit-llvm -o - %s
4 struct A {
5 virtual ~A();
6 };
8 template <typename Ty>
9 struct B : public A {
10 ~B () { delete [] val; }
11 private:
12 Ty* val;
15 template <typename Ty>
16 struct C : public A {
17 C ();
18 ~C ();
21 template <typename Ty>
22 struct D : public A {
23 D () {}
24 private:
25 B<C<Ty> > blocks;
28 template class D<double>;