(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr43643.c
       1  /* Contributed by Jürgen Keil <jrgn.keil@googlemail.com> */
       2  
       3  /* { dg-do run } */
       4  /* { dg-require-profiling "-pg" } */
       5  /* { dg-options "-O2 -pg" } */
       6  /* { dg-options "-O2 -pg -static" { target hppa*-*-hpux* } } */
       7  
       8  extern char *strdup (const char *);
       9  
      10  void
      11  func(char *a, char *b, char *c)
      12  {
      13    void *p = strdup(a);
      14    p = strdup(b);
      15    p = strdup(c);
      16  }
      17  
      18  int
      19  main(void)
      20  {
      21    func("a", "b", "c");
      22    return 0;
      23  }
      24  
      25  /* { dg-final { cleanup-profile-file } } */