diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-27 22:43:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-27 22:43:51 +0000 |
commit | 212ade1830dda2a14503f32609bd7ac61df2d21b (patch) | |
tree | 18e84507aca1479355d93bf91b9362a49d99aaf3 /llvm/test/Regression/C++Frontend | |
parent | 8de460528be168bf673e554aa86afed770c3e4e5 (diff) | |
download | bcm5719-llvm-212ade1830dda2a14503f32609bd7ac61df2d21b.tar.gz bcm5719-llvm-212ade1830dda2a14503f32609bd7ac61df2d21b.zip |
new testcase
llvm-svn: 18290
Diffstat (limited to 'llvm/test/Regression/C++Frontend')
-rw-r--r-- | llvm/test/Regression/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Regression/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp b/llvm/test/Regression/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp new file mode 100644 index 00000000000..f3d225e81a6 --- /dev/null +++ b/llvm/test/Regression/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp @@ -0,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}; +} |