1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-pre -fno-tree-loop-im" } */
4 int a_global_var
, fact
;
12 fact
= a_global_var
* i
;
16 /* We want to have exactly one load (not two) from a_global_var,
17 and we want that load to be into a PRE temporary. */
18 /* { dg-final { scan-tree-dump-times "= a_global_var;" 1 "pre" } } */
19 /* { dg-final { scan-tree-dump "pretmp\[^\\n\]* = a_global_var;" "pre" } } */