2 ! { dg-options "-O3 -fdump-tree-optimized" }
3 ! Tests whether volatile really works with modules
13 if(a
/= 432) print *,'aPresent'
16 if(b
) print *,'bPresent'
19 if(c
) print *,'cPresent'
28 if(a
/= 432) print *,'aStillPresent'
31 if(b
) print *,'bStillPresent'
34 if(c
) print *,'cStillPresent'
36 ! { dg-final { scan-tree-dump "aPresent" "optimized" } }
37 ! { dg-final { scan-tree-dump "bPresent" "optimized" } }
38 ! { dg-final { scan-tree-dump "aStillPresent" "optimized" } }
39 ! { dg-final { scan-tree-dump "bStillPresent" "optimized" } }
40 ! { dg-final { scan-tree-dump-not "cPresent" "optimized" } }
41 ! { dg-final { scan-tree-dump-not "cStillPresent" "optimized" } }
42 ! { dg-final { cleanup-tree-dump "optimized" } }
43 ! { dg-final { cleanup-modules "volmod" } }