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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wreturn-3.C
blob
822dd4fdd3e9d705741e357af5d8e199c2677b2c
1
// { dg-options "-Wreturn-type" }
2
// PR c++/20624
3
4
struct fpos {
5
fpos(int __pos) {}
6
};
7
struct g {
8
g();
9
~g();
10
};
11
fpos seekoff(int b, int c)
12
{
13
g __buf;
14
if (b != -1 && c >= 0)
15
return fpos(-1);
16
else
17
return fpos(-1);
18
}