• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -verify -fblocks %s
2
3struct X0 {
4  static id makeObject1() __attribute__((ns_returns_retained));
5  id makeObject2() __attribute__((ns_returns_retained));
6};
7
8void 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