aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/rdar6248119.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/rdar6248119.m')
-rw-r--r--test/Sema/rdar6248119.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Sema/rdar6248119.m b/test/Sema/rdar6248119.m
new file mode 100644
index 0000000000..fbfa1e3af3
--- /dev/null
+++ b/test/Sema/rdar6248119.m
@@ -0,0 +1,11 @@
+// RUN: clang -fsyntax-only %s -verify
+// Test case for:
+// <rdar://problem/6248119> @finally doesn't introduce a new scope
+
+void f0() {
+ int i;
+ @try {
+ } @finally {
+ int i = 0;
+ }
+}