blob: 1b549018a78524187ee375d172b6f3c81232e99b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -fdump-tree-tmlower" } */
char array[4];
void *memset(void *s, int c, __SIZE_TYPE__);
int main()
{
__transaction [[atomic]] {
memset(array, 'b', sizeof(4));
}
return 0;
}
/* { dg-final { scan-tree-dump-times "GTMA_HAVE_STORE" 1 "tmlower" } } */
/* { dg-final { cleanup-tree-dump "tmlower" } } */
|