2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20001117-1.c
bloba16a62c38c78a9a1e0c95da24f3bb438edb208c6
1 /* { dg-do run } */
2 /* { dg-options "-O2 -finstrument-functions" } */
4 double
5 foo (double a, double b)
7 double c;
8 if (0.0 < a)
9 c = a;
10 else if (b > 0.0)
11 c = 0.0;
12 else
13 return 0;
14 return 2.0 * (b - c);
17 int main ()
19 if (foo (1.0, 4.0) != 6.0)
20 abort ();
21 exit (0);
24 void __attribute__((no_instrument_function)) __cyg_profile_func_enter() { }
25 void __attribute__((no_instrument_function)) __cyg_profile_func_exit() { }