comparison gcc/testsuite/gcc.dg/ipa/pr82808.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* { dg-options "-O2" } */
2 /* { dg-do run } */
3
4 static void __attribute__((noinline))
5 foo (double *a, double x)
6 {
7 *a = x;
8 }
9
10 static double __attribute__((noinline))
11 f_c1 (int m, double *a)
12 {
13 foo (a, m);
14 return *a;
15 }
16
17 int
18 main (){
19 double data;
20 double ret = 0 ;
21
22 if ((ret = f_c1 (2, &data)) != 2)
23 {
24 __builtin_abort ();
25 }
26 return 0;
27 }