diff --git a/test/Regression/C++Frontend/2003-08-24-Cleanup.cpp.tr b/test/Regression/C++Frontend/2003-08-24-Cleanup.cpp.tr new file mode 100644 index 00000000000..690303545f5 --- /dev/null +++ b/test/Regression/C++Frontend/2003-08-24-Cleanup.cpp.tr @@ -0,0 +1,10 @@ +// RUN: llvmg++ -xc++ 2003-08-24-Cleanup.cpp.tr -c -o - | dis | grep 'call void %llvm.unwind' + +struct S { ~S(); }; + +int mightthrow(); + +int test() { + S s; + mightthrow(); +}