2 ! { dg-options "-O2 -fdump-tree-optimized" }
3 ! Tests whether volatile really works
5 logical, volatile :: t1
12 if(t1
) print *, 'VolatileNotOptimizedAway'
13 if(t2
) print *, 'NonVolatileNotOptimizedAway'
16 ! { dg-final { scan-tree-dump "VolatileNotOptimizedAway" "optimized" } } */
17 ! { dg-final { scan-tree-dump-not "NonVolatileNotOptimizedAway" "optimized" } } */
18 ! { dg-final { cleanup-tree-dump "optimized" } } */