brintos

brintos / llvm-project-archived public Read only

0
0
Text · 457 B · 2a80579 Raw
15 lines · plain
1// RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks -fobjc-arc2// RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks3 4__auto_type block = ^ id __attribute__((ns_returns_retained)) (id filter) {5  return filter; // ok6};7__auto_type block2 = ^  __attribute__((ns_returns_retained)) id (id filter) {8  return filter; // ok9};10__auto_type block3 = ^ id (id filter)  __attribute__((ns_returns_retained))  {11  return filter; // ok12};13 14// expected-no-diagnostics15