blob: 8d17f44a0ea0add29508e945adcec75cb1f1555d [file] [log] [blame]
/* APPLE LOCAL file radar 5878380 */
/* Issue diagnostics, instead of ICE, on invalid block pointer assignment. */
/* { dg-do compile } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++" { target *-*-darwin* } } */
static int sNSImageSnapshotInWindowsComputedValue = -2;
static void _NSImageSnapshotInWindows(void)
{
static int nInvalid = ^{ return 1; }; /* { dg-error "cannot convert" } */
sNSImageSnapshotInWindowsComputedValue = ^{ return 1; }; /* { dg-error "cannot convert" } */
}