blob: 274f873fd48ab868996759ee310f25cbc3ed6cc1 [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -verify -fblocks %s
John McCallf85e1932011-06-15 23:02:42 +00002
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}