OSDN Git Service

PR c++/36254
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / warn / Wreturn-type-2.C
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 }