OSDN Git Service

* gcc.dg/vect/vect-105.c: Prevent compiler from hoisting abort
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-lim-5.c
1 /* { dg-do link } */
2 /* { dg-options "-O" } */
3
4 /* We should apply store motion here.  */
5
6 struct BUF1
7 {
8   int b1;
9   int b12;
10 };
11
12 void link_error();
13
14 int foo(struct BUF1 * p)
15 {
16     int i = 0;
17 #if(__SIZEOF_INT__ >= 4)    
18     for (i = 0; i < 1024*1024; i++)
19 #else
20     for (i = 0; i <  128*128; i++)
21 #endif
22       p->b1 = 1;
23
24     if (p->b1 != 1)
25       link_error ();
26     return 0;
27 }
28
29 int main() { return 0; }