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