* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr17526.c
blobc5a97685eb57d02a60197e9f4dda7f6993cc0b81
1 /* { dg-do run } */
2 /* { dg-options "-fno-pcc-struct-return" { target i?86-*-* x86_64-*-* } } */
4 void abort(void);
6 typedef struct { int i; } A;
8 A __attribute__((noinline))
9 foo(void)
11 A a = { -1 };
12 return a;
15 void __attribute__((noinline))
16 bar(A *p)
18 *p = foo();
21 int main(void)
23 A a;
24 bar(&a);
25 if (a.i != -1) abort();
26 return 0;