Mercurial > hg > CbC > CbC_gcc
view libitm/testsuite/libitm.c/stackundo.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
static int __attribute__((noinline)) test2(int x[1000]) { int i; return x[12]; } static int __attribute__((noinline)) test1() { int x[1000], i; for (i = 0; i < 1000; i++) x[i] = i; return test2(x); } int main() { __transaction_atomic { if (test1() !=0) __transaction_cancel; } return 0; }