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
analyzer: enable taint state machine by default [PR103533]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
tm
/
trxn-expr-2.c
blob
0ef6526db7be8e14e8f6e0876a762c2e1700fa6c
1
/* { dg-do compile } */
2
/* Make sure that we don't just crash without -fgnu-tm enabled. */
3
/* { dg-options "" } */
4
5
int
x
;
6
7
int
foo
(
void
)
8
{
9
return
__transaction_atomic
(
x
+
1
);
/* { dg-error "" } */
10
}
11
12
int
bar
(
void
)
13
{
14
return
__transaction_relaxed
(
x
+
1
);
/* { dg-error "" } */
15
}