1 /* Test that IPA-CP is able to figure out that poth parameters a are constant 7
2 even though f and h recursively call each other and specialize them
5 /* { dg-do compile } */
6 /* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp -fno-early-inlining" } */
7 /* { dg-add-options bind_pic_locally } */
9 extern void use_stuff (int);
16 for (i
= 0; i
< b
; i
++)
20 static void f (int a
, int x
, int z
);
22 static void h (int z
, int a
)
30 f (int a
, int x
, int z
)
39 main (int argc
, char *argv
[])
42 for (i
= 0; i
< 100; i
++)
48 /* { dg-final { scan-ipa-dump "Creating a specialized node of f.*for all known contexts" "cp" } } */
49 /* { dg-final { scan-ipa-dump "replacing param .0 a with const 7" "cp" } } */
50 /* { dg-final { cleanup-ipa-dump "cp" } } */