2 ! { dg-options "-O2 -fdump-tree-optimized" }
3 ! Tests that volatile can be applied to members of common blocks or
4 ! equivalence groups (PR fortran/35037)
12 if (event
) print *, 'NotOptimizedAway1'
19 equivalence (event
, foo
)
22 if (event
) print *, 'NotOptimizedAway2'
30 equivalence (event
, foo
)
33 if (event
) print *, 'IsOptimizedAway'
37 ! { dg-final { scan-tree-dump "NotOptimizedAway1" "optimized" } } */
38 ! { dg-final { scan-tree-dump "NotOptimizedAway2" "optimized" } } */
39 ! { dg-final { scan-tree-dump-not "IsOptimizedAway" "optimized" } } */