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
PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wreturn-type-2.C
blob
ad59d4ec344cc44c35f2fc6a71849fad02832ed4
1
// PR middle-end/16558
2
// { dg-options "-Wreturn-type" }
3
4
struct C
5
{
6
C ();
7
~C ();
8
};
9
10
int getref (int ndx)
11
{
12
C d;
13
14
if (ndx != 0) {
15
C base;
16
return 0;
17
}
18
else
19
return 0;
20
}