gcc/testsuite/gcc.dg/lto/pr83388_0.c
raw| 1 | /* { dg-lto-do link } */ |
| 2 | /* { dg-lto-options { { -O2 -flto -fsanitize=null } { -O0 -flto -fsanitize=null } } } */ |
| 3 | /* { dg-extra-ld-options { -fno-sanitize=null -r -nostdlib -flinker-output=nolto-rel } } */ |
| 4 | |
| 5 | enum { a } e(void); |
| 6 | struct C { |
| 7 | int d; |
| 8 | } c; |
| 9 | long f; |
| 10 | void g(long); |
| 11 | static void i(_Bool h) { |
| 12 | struct C *a = ({ ({ &c; }); }); |
| 13 | if (e()) { |
| 14 | int b = a->d; |
| 15 | g(f); |
| 16 | } |
| 17 | } |
| 18 | void j(void) { i(a); } |