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