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