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
func(char * a,char * b,char * c)11 func(char *a, char *b, char *c)
12 {
13 strdup(a);
14 strdup(b);
15 strdup(c);
16 }
17
18 int
main(void)19 main(void)
20 {
21 func("a", "b", "c");
22 return 0;
23 }
24
25 /* { dg-final { cleanup-profile-file } } */
26