☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
Sema
/
block-return-1.c
☽
☼
clang/test/Sema/block-return-1.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks
2
3
int j;
4
void foo(void) {
5
^ (void) { if (j) return 1; }(); // expected-error {{non-void block does not return a value in all control paths}}
6
}