summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-27 22:43:51 +0000
committerChris Lattner <sabre@nondot.org>2004-11-27 22:43:51 +0000
commitdf284a74ec6729a9f4af1a6269487c892e07d6d1 (patch)
treed6e71213cc5d6eca23aa6cf524e5eaff143fcb0e /test
parent3be58f90ec19d9dd88a67a7c8f02f49cc34e7434 (diff)
downloadllvm-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.cpp14
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};
+}