Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wreturn-3.C

raw
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 }