blob: ddb70e2ef643eced2a24cd66e8ccd1250e9893b0 [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks
int j;
void foo() {
^ (void) { if (j) return 1; }(); // expected-error {{non-void block does not return a value in all control paths}}
}