[PR 82808] Use proper result types for arithmetic jump functions
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / pr82808.c
blob9c95d0b6ed75d07defccad8b47c1e188d6c77796
1 /* { dg-options "-O2" } */
2 /* { dg-do run } */
4 static void __attribute__((noinline))
5 foo (double *a, double x)
7 *a = x;
10 static double __attribute__((noinline))
11 f_c1 (int m, double *a)
13 foo (a, m);
14 return *a;
17 int
18 main (){
19 double data;
20 double ret = 0 ;
22 if ((ret = f_c1 (2, &data)) != 2)
24 __builtin_abort ();
26 return 0;