[cfe-commits] r69455 - in /cfe/trunk/test/SemaObjC: scope-check-try-catch.m scope-check.m
Chris Lattner
sabre at nondot.org
Sat Apr 18 11:41:42 PDT 2009
Author: lattner
Date: Sat Apr 18 13:41:40 2009
New Revision: 69455
URL: http://llvm.org/viewvc/llvm-project?rev=69455&view=rev
Log:
rename test
Added:
cfe/trunk/test/SemaObjC/scope-check.m
- copied unchanged from r69453, cfe/trunk/test/SemaObjC/scope-check-try-catch.m
Removed:
cfe/trunk/test/SemaObjC/scope-check-try-catch.m
Removed: cfe/trunk/test/SemaObjC/scope-check-try-catch.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/scope-check-try-catch.m?rev=69454&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/scope-check-try-catch.m (original)
+++ cfe/trunk/test/SemaObjC/scope-check-try-catch.m (removed)
@@ -1,33 +0,0 @@
-// RUN: clang-cc -fsyntax-only -verify %s
-
- at class A, B, C;
-
-void test1() {
- goto L; // expected-error{{illegal goto into protected scope}}
- goto L2; // expected-error{{illegal goto into protected scope}}
- goto L3; // expected-error{{illegal goto into protected scope}}
- @try { // expected-note 3 {{scope created by @try block}}
-L: ;
- } @catch (A *x) {
-L2: ;
- } @catch (B *x) {
- } @catch (C *c) {
- } @finally {
-L3: ;
- }
-}
-
-void test2(int a) {
- if (a) goto L0;
- @try {} @finally {}
- L0:
- return;
-}
-
-// rdar://6803963
-void test3() {
- @try {
- goto blargh;
- blargh: ;
- } @catch (...) {}
-}
More information about the cfe-commits
mailing list