Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / 20021014-1.c
blobe43f7b297c5e3a95a18a7a47976a7d97af307f03
1 /* { dg-do run } */
2 /* { dg-require-profiling "-p" } */
3 /* { dg-options "-O2 -p" } */
4 /* { dg-options "-O2 -p -static" { target hppa*-*-hpux* } } */
5 /* { dg-error "profiler" "No profiler support" { target xstormy16-*-* } 0 } */
6 /* { dg-message "" "consider using `-pg' instead of `-p' with gprof(1)" { target *-*-freebsd* } 0 } */
8 extern void abort (void);
9 extern void exit (int);
11 int foo (void)
13 int bar (int x)
15 return x + 3;
17 return bar (1) + bar (2);
20 int main (void)
22 if (foo () != 9)
23 abort ();
24 exit (0);
27 /* { dg-final { cleanup-profile-file } } */