* gcc.dg/20000904-1.c: New test.
From-SVN: r36130
This commit is contained in:
parent
a44140930c
commit
e0cb4f3652
@ -1,3 +1,7 @@
|
||||
2000-09-04 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.dg/20000904-1.c: New test.
|
||||
|
||||
2000-09-04 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.dg/cpp/paste8.c: New test.
|
||||
|
11
gcc/testsuite/gcc.dg/20000904-1.c
Normal file
11
gcc/testsuite/gcc.dg/20000904-1.c
Normal file
@ -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)));
|
||||
}
|
Loading…
Reference in New Issue
Block a user