OSDN Git Service

* config/i386/i386.md (UNSPEC_VSIBADDR): New.
[pf3gnuchains/gcc-fork.git] / 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   strdup(a);
14   strdup(b);
15   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 } } */