| 1 | // RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks -fobjc-arc |
|---|---|
| 2 | // RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks |
| 3 | |
| 4 | __auto_type block = ^ id __attribute__((ns_returns_retained)) (id filter) { |
| 5 | return filter; // ok |
| 6 | }; |
| 7 | __auto_type block2 = ^ __attribute__((ns_returns_retained)) id (id filter) { |
| 8 | return filter; // ok |
| 9 | }; |
| 10 | __auto_type block3 = ^ id (id filter) __attribute__((ns_returns_retained)) { |
| 11 | return filter; // ok |
| 12 | }; |
| 13 | |
| 14 | // expected-no-diagnostics |
| 15 |