diff --git a/test/C++Frontend/2004-03-15-CleanupsAndGotos.cpp b/test/C++Frontend/2004-03-15-CleanupsAndGotos.cpp new file mode 100644 index 00000000000..fc5ba356178 --- /dev/null +++ b/test/C++Frontend/2004-03-15-CleanupsAndGotos.cpp @@ -0,0 +1,11 @@ +// Testcase from Bug 291 +struct X { + ~X(); +}; + +void foo() { + X v; + +TryAgain: + goto TryAgain; +}