gcc/testsuite/gcc.target/powerpc/pr55033.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target powerpc_eabi_ok } */ |
| 3 | /* { dg-options "-mdejagnu-cpu=8540 -msoft-float -meabi -msdata=eabi -G 8 -fno-common" } */ |
| 4 | |
| 5 | extern void f (void); |
| 6 | |
| 7 | struct s |
| 8 | { |
| 9 | int *p; |
| 10 | int *q; |
| 11 | }; |
| 12 | |
| 13 | extern int a; |
| 14 | |
| 15 | extern const struct s c; |
| 16 | |
| 17 | const struct s c = { &a, 0 }; |
| 18 | |
| 19 | void |
| 20 | f (void) |
| 21 | { |
| 22 | char buf[4] = { 0, 1, 2, 3 }; |
| 23 | } |