repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr23075.C
blob
cc71deada53d904ab6ab3c59007e31e3463871f3
1
// PR c/23075
2
// { dg-do compile }
3
// { dg-options "-O2 -Wreturn-type" }
4
5
int
6
foo (void)
7
{
8
return; // { dg-error "with no value" }
9
} // { dg-bogus "control reaches end" }
10
11
int
12
bar (void)
13
{
14
} // { dg-warning "control reaches end" }