diff options
Diffstat (limited to 'llvm/test/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp')
-rw-r--r-- | llvm/test/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp b/llvm/test/C++Frontend/2004-11-27-ExceptionCleanupAssertion.cpp new file mode 100644 index 00000000000..f3d225e81a6 --- /dev/null +++ b/llvm/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}; +} |