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