* gcc.dg/20000904-1.c: New test.

From-SVN: r36130
This commit is contained in:
Jakub Jelinek 2000-09-04 12:13:34 +02:00 committed by Jakub Jelinek
parent a44140930c
commit e0cb4f3652
2 changed files with 15 additions and 0 deletions

View File

@ -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.

View 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)));
}