1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* PR debug/41893 */ /* { dg-do link } */ /* { dg-require-effective-target lto } */ /* { dg-options "-flto -fwhole-program -O" } */ /* { dg-additional-sources "pr41893-2.c" } */ struct S { int v; }; struct S s; void __attribute__((externally_visible)) func1 (void) { struct S *p = &s; } int main() { return 0; }