Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / ipa / ipa-3.c
blob5abe16ea7cd143d57110ef3c43106d6daac681fa
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fipa-cp -fdump-ipa-cp" } */
3 /* { dg-skip-if "PR 25442" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
6 /* Double constants. */
8 #include <stdio.h>
9 int g (double b, double c)
11 return (int)(b+c);
13 int f (double a)
15 if (a > 0)
16 g (a, 3.1);
17 else
18 g (a, 3.1);
20 int main ()
22 f (7.44);
23 return 0;
27 /* { dg-final { scan-ipa-dump-times "versioned function" 2 "cp" } } */
28 /* { dg-final { scan-ipa-dump-times "propagating const" 3 "cp" } } */
29 /* { dg-final { cleanup-ipa-dump "cp" } } */