repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[gn build] Port fef54d0393fd
[llvm-project.git]
/
clang
/
test
/
Sema
/
block-return-1.c
blob
4b77f5a5ca68bcea4f5dd08813025808aa068355
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
}