1 /* Verify that do_work is detected as being loop invariant. */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -c -fdump-ipa-inline-details -fno-early-inlining" } */
5 struct bah
{int a
,b
,d
;};
7 static int do_work (struct bah s
)
11 int foo (int invariant
)
14 struct bah s
= {invariant
,invariant
,invariant
};
16 for (i
= 0; i
<10; i
++)
24 /* { dg-final { scan-ipa-dump "Scaling time by probability:0.099900" "inline" } } */