Sign in
cobalt
/
cobalt
/
f585e2638bbd137762988742fc2cbe613293dc58
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
Sema
/
block-return-1.c
blob: 631a2d443e1f267c2d0c68d6567016c492eb906a [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks
int
j
;
void
foo
()
{
^
(
void
)
{
if
(
j
)
return
1
;
}();
// expected-error {{control may reach end of non-void block}}
}