Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fblocks -fsyntax-only -verify %s
      2 // RUN: %clang_cc1 -fblocks -fobjc-arc -fsyntax-only -verify %s
      3 // expected-no-diagnostics
      4 // rdar://17259812
      5 
      6 typedef void (^BT) ();
      7 
      8 class S {
      9   BT br() __attribute__((ns_returns_retained)) {
     10     return ^{};
     11   }
     12  BT br1() __attribute__((ns_returns_retained));
     13 };
     14 
     15 BT S::br1() {
     16     return ^{};
     17 }
     18