[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / g++.dg / lto / pr51572-2_0.C
blobf7de4f06aef73f62302900980635cac66b0de0d6
1 // Copy of g++.dg/debug/pr45660
2 // { dg-lto-do link }
3 // { dg-lto-options { { -g -flto } } }
5 int
6 main ()
8   struct S
9   {
10     typedef void (**T) (void);
11     static T i (void) { return 0; }
12   };
13   S s;
14   if (s.i ())
15     *s.i () = 0;