aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/C++Frontend/2004-03-15-CleanupsAndGotos.cpp11
1 files changed, 11 insertions, 0 deletions
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 0000000000..fc5ba35617
--- /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;
+}