fixit-recursive-block.c 575 B

123456789101112
  1. // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wuninitialized -fblocks -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
  2. // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wuninitialized -fblocks -verify %s
  3. // rdar://10817031
  4. int main() {
  5. void (^arc_fail)() = ^() { // expected-warning {{block pointer variable 'arc_fail' is uninitialized when captured by block}} \
  6. // expected-note {{consider using a '__block' variable 'arc_fail' to silence this warning}}
  7. arc_fail(); // BOOM
  8. };
  9. }
  10. // CHECK: {7:12-7:12}:"__block "