Sign in
fuchsia
/
third_party
/
llvm-project
/
c3fd2a50ba1395b6c2240f6a688c6a1aa975a1fe
/
.
/
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}}
}