Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / ipa / ipa-1.c
blobd8f737a380c039adb6745f16da30289a127b5c47
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fipa-cp -fdump-ipa-cp" } */
4 #include <stdio.h>
5 int g (int b, int c)
7 printf ("%d %d\n", b, c);
9 int f (int a)
11 /* Second parameter of g gets different values. */
12 if (a > 0)
13 g (a, 3);
14 else
15 g (a, 5);
17 int main ()
19 f (7);
20 return 0;
24 /* { dg-final { scan-ipa-dump-times "versioned function" 2 "cp" } } */
25 /* { dg-final { scan-ipa-dump-times "propagating const" 2 "cp" } } */
26 /* { dg-final { cleanup-ipa-dump "cp" } } */