Debian Codegraph @

gcc/testsuite/g++.dg/lto/pr66705_0.C

raw
1 // { dg-lto-do link }
2 // { dg-require-effective-target lto_incremental }
3 // { dg-lto-options { { -O2 -flto -flto-partition=max -fipa-pta } } }
4 // { dg-extra-ld-options "-r -nostdlib" }
5
6 class A {
7 public:
8 A();
9 };
10 int a = 0;
11 void foo() {
12 a = 0;
13 A b;
14 for (; a;)
15 ;
16 }