Sign in
llvm
/
llvm-project
/
37d72991c136244fe53be02f5af0ad643247a1e6
/
.
/
clang
/
test
/
Sema
/
block-return-1.c
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}}
}