blob: 1070947fb24db9b1252c4008bd6b46cc0cc3a887 [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 "incompatible type" } */
sNSImageSnapshotInWindowsComputedValue = ^{ return 1; }; /* { dg-error "incompatible type" } */
}