Sign in
llvm
/
llvm-project
/
clang
/
5d98a3efc03f2b130f13449f974f802db1066da3
/
.
/
test
/
Sema
/
block-return-1.c
blob: 4b77f5a5ca68bcea4f5dd08813025808aa068355 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks
int
j
;
void
foo
(
void
)
{
^
(
void
)
{
if
(
j
)
return
1
;
}();
// expected-error {{non-void block does not return a value in all control paths}}
}