OSDN Git Service

Target Hook to issue diagnostics for AltiVec argument to funtion
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20000904-1.c
1 /* { dg-do compile { target i?86-*-* } } */
2 /* { dg-options "-O0 -fpic" } */
3
4 static struct {
5   unsigned short a, b, c, d;
6 } x[10];
7
8 int foo(int i)
9 {
10   return ((*((char *)&x[i] + i)) | (*((char *)&x[i] + i)));
11 }