(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
pr102059-1.c
       1  /* { dg-do compile } */
       2  /* -Wno-attributes suppresses always_inline warnings.  */
       3  /* { dg-options "-O2 -mdejagnu-cpu=power8 -Wno-attributes" } */
       4  
       5  /* Verify the reduced case from PR102059 won't fail.  */
       6  
       7  __attribute__ ((always_inline)) int
       8  foo (int *b)
       9  {
      10    *b += 10;
      11    return *b;
      12  }
      13  
      14  #pragma GCC target "cpu=power10"
      15  int
      16  bar (int *a)
      17  {
      18    *a = foo (a);
      19    return 0;
      20  }
      21