summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr43643.c
blob: b0c57c0a6dc3e891d2984a27b980fcaf5aeb1ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Contributed by Jürgen Keil <jrgn.keil@googlemail.com> */

/* { dg-do run } */
/* { dg-require-profiling "-pg" } */
/* { dg-options "-O2 -pg" } */
/* { dg-options "-O2 -pg -static" { target hppa*-*-hpux* } } */

extern char *strdup (const char *);

void
func(char *a, char *b, char *c)
{
  strdup(a);
  strdup(b);
  strdup(c);
}

int
main(void)
{
  func("a", "b", "c");
  return 0;
}

/* { dg-final { cleanup-profile-file } } */