Home | History | Annotate | Download | only in FixIt
      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 
      4 // rdar://10817031
      5 
      6 int main() {
      7     void (^arc_fail)() = ^() {  // expected-warning {{block pointer variable 'arc_fail' is uninitialized when captured by block}} \
      8                                 // expected-note {{maybe you meant to use __block 'arc_fail'}}
      9        arc_fail(); // BOOM
     10     };
     11 }
     12 // CHECK: {7:12-7:12}:"__block "
     13