2 ! { dg-options "-fdump-tree-original -fcoarray=lib" }
4 ! Argument passing was wrong
12 integer(atomic_int_kind
) :: atom
[*]
14 call atomic_define(atom
[1],0)
16 call ATOMIC_ADD (atom
[1], me
)
17 if(me
== 1) call atomic_ref(me
,atom
[1])
22 ! { dg-final { scan-tree-dump-times "value.. = 0;" 1 "original" } }
23 ! { dg-final { scan-tree-dump-times "_gfortran_caf_atomic_define \\(caf_token.0, 0, 1, &value.., 0B, 1, 4\\);" 1 "original" } }
24 ! { dg-final { scan-tree-dump-times "_gfortran_caf_atomic_op \\(1, caf_token.0, 0, 1, &me, 0B, 0B, 1, 4\\);" 1 "original" } }
25 ! { dg-final { scan-tree-dump-times "_gfortran_caf_atomic_ref \\(caf_token.0, 0, 1, &me, 0B, 1, 4\\);" 1 "original" } }