Home | History | Annotate | Download | only in SemaObjCXX
      1 // RUN: %clang_cc1 -fsyntax-only -triple i386-apple-darwin9 -fobjc-gc -verify %s
      2 // expected-no-diagnostics
      3 
      4 void f0(__weak id *);
      5 
      6 void test_f0(id *x) {
      7   f0(x);
      8 }
      9 
     10 @interface A
     11 @end
     12 
     13 void f1(__weak id*);
     14 void test_f1(__weak A** a) {
     15   f1(a);
     16 }
     17 
     18 @interface B : A
     19 @end
     20 
     21 void f2(__weak A**);
     22 void test_f2(__weak B** b) {
     23   f2(b);
     24 }
     25 
     26