diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 202ad8f48b9..5e423fd3a16 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-09-04 Jakub Jelinek + + * gcc.dg/20000904-1.c: New test. + 2000-09-04 Jakub Jelinek * gcc.dg/cpp/paste8.c: New test. diff --git a/gcc/testsuite/gcc.dg/20000904-1.c b/gcc/testsuite/gcc.dg/20000904-1.c new file mode 100644 index 00000000000..c6238e35099 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20000904-1.c @@ -0,0 +1,11 @@ +/* { dg-do compile { target i?86-*-* } } */ +/* { dg-options "-O0 -fpic" } */ + +static struct { + unsigned short a, b, c, d; +} x[10]; + +int foo(int i) +{ + return ((*((char *)&x[i] + i)) | (*((char *)&x[i] + i))); +}