S/390: Allow immediates in loc expander
[official-gcc.git] / gcc / testsuite / gcc.dg / alias-9.c
blobf8c10031622dd12e47fce9a2f48b0dea2192303b
1 /* { dg-do compile } */
2 /* { dg-options "-Wstrict-aliasing=2 -O2" } */
4 int a[2];
6 double *foo1(void)
8 return (double *)a; /* { dg-warning "strict-aliasing" } */
11 double *foo2(void)
13 return (double *)&a[0]; /* { dg-warning "strict-aliasing" } */
16 _Complex x;
17 int *bar(void)
19 return (int *)&__imag x; /* { dg-warning "strict-aliasing" } */