2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr27184.c
blobcfb6ed2a8a6dc2c3f1878358053e505633f0703e
1 /* Copyright 2006 Free Software Foundation */
3 /* Make sure a and a1 alias each other.
4 Incomplete array types used to not be unified, which broke aliasing. */
6 /* { dg-do run } */
8 typedef long atype[];
9 typedef long atype1[];
10 int NumSift (atype *a, atype1 *a1)
12 (*a)[0] = 0;
13 (*a1)[0] = 1;
14 return (*a)[0];
16 int main(void)
18 long a[2];
19 if (!NumSift(&a, &a))
20 __builtin_abort ();
21 return 0;