PR tree-optimization/82549
[official-gcc.git] / libitm / testsuite / libitm.c / stackundo.c
blobc7d585ef9377c8acd72ae8a69fd2d71f63716130
1 static int __attribute__((noinline)) test2(int x[1000])
3 int i;
4 return x[12];
7 static int __attribute__((noinline)) test1()
9 int x[1000], i;
11 for (i = 0; i < 1000; i++)
12 x[i] = i;
13 return test2(x);
16 int main()
18 __transaction_atomic {
19 if (test1() !=0)
20 __transaction_cancel;
22 return 0;