repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tm
/
opt-2.c
blob
d9e2b8a6db0d3560fc8bba3a39c18e1e37bcb84c
1
/* { dg-do compile } */
2
/* { dg-options "-fgnu-tm -O2" } */
3
4
int
foo
(
int
*
arr
,
int
v
)
5
{
6
int
r
=
0
;
7
int
i
;
8
__transaction_atomic
{
9
for
(
i
=
0
;
i
<
10
; ++
i
)
10
if
(
arr
[
i
] <
27
)
11
r
+=
arr
[
i
] +=
v
;
12
}
13
return
r
;
14
}