blob: ac9a019aa83aba3e580ffb1ef266592318db268b [file] [log] [blame]
// { 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;)
;
}