blob: d01dba0778a6b9cb15c2f4d9a7200830eb19d0c6 [file] [log] [blame]
Steve Naroff7e3ec6d2009-04-14 20:53:38 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3@class A, B, C;
4
5void f() {
6 goto L; // expected-error{{illegal jump}}
7 goto L2; // expected-error{{illegal jump}}
8 goto L3; // expected-error{{illegal jump}}
9 @try {
10L: ;
11 } @catch (A *x) {
12L2: ;
13 } @catch (B *x) {
14 } @catch (C *c) {
15 } @finally {
16L3: ;
17 }
18}
Steve Naroff74511702009-04-15 14:38:36 +000019
20void f0(int a) {
21 if (a) goto L0;
22 @try {} @finally {}
23 L0:
24 return;
25}
26