[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2006-09-12-OpaqueStructCrash.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 12 09:28:28 PDT 2006
Changes in directory llvm/test/Regression/C++Frontend:
2006-09-12-OpaqueStructCrash.cpp added (r1.1)
---
Log message:
Testcase that crashes the C++ FE.
---
Diffs of the changes: (+28 -0)
2006-09-12-OpaqueStructCrash.cpp | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+)
Index: llvm/test/Regression/C++Frontend/2006-09-12-OpaqueStructCrash.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2006-09-12-OpaqueStructCrash.cpp:1.1
*** /dev/null Tue Sep 12 11:28:24 2006
--- llvm/test/Regression/C++Frontend/2006-09-12-OpaqueStructCrash.cpp Tue Sep 12 11:28:14 2006
***************
*** 0 ****
--- 1,28 ----
+ // RUN: llvm-g++ -O3 -S -o - %s
+
+ struct A {
+ virtual ~A();
+ };
+
+ template <typename Ty>
+ struct B : public A {
+ ~B () { delete [] val; }
+ private:
+ Ty* val;
+ };
+
+ template <typename Ty>
+ struct C : public A {
+ C ();
+ ~C ();
+ };
+
+ template <typename Ty>
+ struct D : public A {
+ D () {}
+ private:
+ B<C<Ty> > blocks;
+ };
+
+ template class D<double>;
+
More information about the llvm-commits
mailing list