repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
warn
/
main-2.C
blob
d38ef8e0912a50cc33f8a9d7cddc514a075dc2e3
1
// { dg-do compile }
2
// Make sure that the type of f1 does not change
3
// after the error of main about not returning
4
// int.
5
// From Pekka Vuorela <pvuorela@iki.fi>
6
// PR c++/23229
7
8
void f1();
9
10
void
11
main() /* { dg-error "must return" } */
12
{
13
f1();
14
}
15
16
void f1()
17
{
18
}
19