(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
s390/
pr97497.c
       1  /* { dg-do run } */
       2  /* { dg-options "-O2 -march=z900 -mzarch -fpic" } */
       3  
       4  char *t;
       5  
       6  void __attribute__((noinline,noclone))
       7  bar(int a, char* b)
       8  {
       9    if (a != 1)
      10      __builtin_abort();
      11  }
      12  
      13  void __attribute__((noinline,noclone))
      14  baz(char* a, int b)
      15  {
      16    if (b != 1)
      17      __builtin_abort();
      18  }
      19  
      20  int __attribute__((noinline,noclone))
      21  foo (int a)
      22  {
      23    bar (1, t);
      24    if (a)
      25      baz (t, 1);
      26  
      27    bar (1, t);
      28  }
      29  
      30  int
      31  main ()
      32  {
      33    foo (1);
      34  
      35    return 0;
      36  }