* expmed.c (flip_storage_order): Deal with complex modes specially.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr58209.c
blob78743bfb959c5db0069d27945115d52d962b7e31
1 /* PR tree-optimization/58209 */
3 extern void abort (void);
4 typedef __INTPTR_TYPE__ T;
5 T buf[1024];
7 T *
8 foo (T n)
10 if (n == 0)
11 return (T *) buf;
12 T s = (T) foo (n - 1);
13 return (T *) (s + sizeof (T));
16 T *
17 bar (T n)
19 if (n == 0)
20 return buf;
21 return foo (n - 1) + 1;
24 int
25 main ()
27 int i;
28 for (i = 0; i < 27; i++)
29 if (foo (i) != buf + i || bar (i) != buf + i)
30 abort ();
31 return 0;