Sign in
llvm
/
llvm-project
/
clang
/
8a333c2ef8fa6548b58fd5f448f29262928c4910
/
.
/
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}}
}