Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -fsyntax-only %s -verify -fobjc-exceptions
      2 // Test case for: 
      3 //   <rdar://problem/6248119> @finally doesn't introduce a new scope
      4 
      5 void f0() {
      6   int i;
      7   @try { 
      8   } @finally {
      9     int i = 0;
     10   }
     11 }
     12 
     13 void f1() {
     14   int i;
     15   @try { 
     16     int i =0;
     17   } @finally {
     18   }
     19 }
     20 
     21 void f2() {
     22   int i;
     23   @try { 
     24   } @catch(id e) {
     25     int i = 0;
     26   }
     27 }
     28