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
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
Sema
/
block-return-2.c
blob
8e7bb95c86656bd05ea9f1d6d34566c2f1c37bd1
1
// RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks
2
3
void
foo
(
void
) {
4
^ (
void
)
__attribute__
((
noreturn
)) { }();
// expected-error {{block declared 'noreturn' should not return}}
5
}