PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / pr66655.C
blob218a2c63eb347991eab75b4f906776459a78735a
1 /* { dg-do run } */
2 /* { dg-additional-sources "pr66655_1.cc" } */
4 #include "pr66655.h"
6 extern "C" void abort (void);
8 #define COOKIE 0xabcd0123
10 int
11 g (void)
13   return COOKIE;
16 extern int f (void);
18 int
19 main (void)
21   S::set(0);
22   if (f () != COOKIE)
23     abort ();
24   return 0;