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 | df284a74ec6729a9f4af1a6269487c892e07d6d1 (patch) | |
tree | d6e71213cc5d6eca23aa6cf524e5eaff143fcb0e /test | |
parent | 3be58f90ec19d9dd88a67a7c8f02f49cc34e7434 (diff) | |
download | llvm-df284a74ec6729a9f4af1a6269487c892e07d6d1.tar.gz llvm-df284a74ec6729a9f4af1a6269487c892e07d6d1.tar.bz2 llvm-df284a74ec6729a9f4af1a6269487c892e07d6d1.tar.xz |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp b/test/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp new file mode 100644 index 0000000000..f3d225e81a --- /dev/null +++ b/test/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}; +} |