(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
ipa/
pr82808.c
       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  }