(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
lto/
pr66705_0.C
// { dg-lto-do link }
// { dg-require-effective-target lto_incremental }
// { dg-lto-options { { -O2 -flto -flto-partition=max -fipa-pta } } }
// { dg-extra-ld-options "-r -nostdlib" }

class A {
public:
    A();
};
int a = 0;
void foo() {
    a = 0;
    A b;
    for (; a;)
      ;
}