1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-gc -fsyntax-only -verify %s
6 void f0(__strong A**); // expected-note{{passing argument to parameter here}}
12 f0(&a2); // expected-warning{{passing 'A *__weak *' to parameter of type 'A *__strong *' discards qualifiers}}
15 void f1(__weak A**); // expected-note{{passing argument to parameter here}}
21 f1(&a2); // expected-warning{{passing 'A *__strong *' to parameter of type 'A *__weak *' discards qualifiers}}
24 // These qualifiers should silently expand to nothing in GC mode.
25 void test_unsafe_unretained(__unsafe_unretained id *x) {}
26 void test_autoreleasing(__autoreleasing id *x) {}