1 // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -verify -fblocks %s 2 // expected-no-diagnostics 3 4 struct X0 { 5 static id makeObject1() __attribute__((ns_returns_retained)); 6 id makeObject2() __attribute__((ns_returns_retained)); 7 }; 8 9 void test_X0(X0 x0, X0 *x0p) { 10 X0::makeObject1(); 11 x0.makeObject2(); 12 x0p->makeObject2(); 13 id (X0::*pmf)() __attribute__((ns_returns_retained)) = &X0::makeObject2; 14 (x0.*pmf)(); 15 (x0p->*pmf)(); 16 } 17