gcc/testsuite/ChangeLog 2013-05-10 Sebastian Huber <sebastian.hu...@embedded-brains.de>
PR target/55033 * gcc.target/powerpc/pr55033.c: New. --- gcc/testsuite/gcc.target/powerpc/pr55033.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 gcc/testsuite/gcc.target/powerpc/pr55033.c diff --git a/gcc/testsuite/gcc.target/powerpc/pr55033.c b/gcc/testsuite/gcc.target/powerpc/pr55033.c new file mode 100644 index 0000000..cd8abcb --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/pr55033.c @@ -0,0 +1,21 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_eabi_ok } */ +/* { dg-options "-mcpu=8540 -msoft-float -msdata=eabi -G 8 -fno-common" } */ + +void f(void); + +struct s { + int *p; + int *q; +}; + +extern int a; + +extern const struct s c; + +const struct s c = { &a, 0 }; + +void f(void) +{ + char buf[4] = { 0, 1, 2, 3 }; +} -- 1.7.7