[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Nov 27 14:44:05 PST 2004
Changes in directory llvm/test/Regression/C++Frontend:
2004-11-27-ExceptionCleanupAssertion.cpp added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+14 -0)
Index: llvm/test/Regression/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp:1.1
*** /dev/null Sat Nov 27 16:44:01 2004
--- llvm/test/Regression/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp Sat Nov 27 16:43:51 2004
***************
*** 0 ****
--- 1,14 ----
+ // RUN: %llvmgxx %s -S -o /dev/null
+
+ // This is PR421
+
+ struct Strongbad {
+ Strongbad(const char *str );
+ ~Strongbad();
+ operator const char *() const;
+ };
+
+ void TheCheat () {
+ Strongbad foo(0);
+ Strongbad dirs[] = { Strongbad(0) + 1};
+ }
More information about the llvm-commits
mailing list