mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 03:52:59 +00:00
24 lines
308 B
C
24 lines
308 B
C
int __attribute__((noinline)) test2(int x[1000])
|
|
{
|
|
int i;
|
|
return x[12];
|
|
}
|
|
|
|
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;
|
|
}
|