summaryrefslogtreecommitdiff
path: root/test/C++Frontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-16 05:14:47 +0000
committerChris Lattner <sabre@nondot.org>2004-03-16 05:14:47 +0000
commita1d1fcec93a09f16a49721200ff0d342e01b5d06 (patch)
tree593295e2902c76f3bdc14073da4fa3fe5853b370 /test/C++Frontend
parent002be767333e4253df6c5477dda28890dbd3488c (diff)
downloadllvm-a1d1fcec93a09f16a49721200ff0d342e01b5d06.tar.gz
llvm-a1d1fcec93a09f16a49721200ff0d342e01b5d06.tar.bz2
llvm-a1d1fcec93a09f16a49721200ff0d342e01b5d06.tar.xz
// Testcase from Bug 291
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/C++Frontend')
-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;
+}