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
aarch64: Fix sve/acle/general/ldff1_8.c failures
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tm
/
unsafe.c
blob
824368a1a347611b3f9b68de104982bbbfffad2c
1
/* { dg-do compile } */
2
/* { dg-options "-fgnu-tm" } */
3
4
__attribute__
((
transaction_callable
))
5
static int
func
()
6
{
7
return
12345
;
8
}
9
10
int
main
()
11
{
12
__transaction_atomic
{
return
func
(); }
/* { dg-error "unsafe function call .func. " } */
13
}