Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / 20001117-1.c
blobbaf0691931770fe68314b96d6406a7eeeaf7a117
1 /* { dg-do run } */
2 /* { dg-options "-O2 -finstrument-functions" } */
4 extern void abort (void);
5 extern void exit (int);
7 double
8 foo (double a, double b)
10 double c;
11 if (0.0 < a)
12 c = a;
13 else if (b > 0.0)
14 c = 0.0;
15 else
16 return 0;
17 return 2.0 * (b - c);
20 int main ()
22 if (foo (1.0, 4.0) != 6.0)
23 abort ();
24 exit (0);
27 void __attribute__((no_instrument_function)) __cyg_profile_func_enter(void *this_fn, void *call_site) { }
28 void __attribute__((no_instrument_function)) __cyg_profile_func_exit(void *this_fn, void *call_site) { }