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