OSDN Git Service

* c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20021014-1.c
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-error "" "consider using `-pg' instead of `-p' with gprof(1)" { target *-*-freebsd* } 0 } */
7 /* { dg-bogus "\[Uu\]nresolved symbol ._mcount" "Profiling unsupported" { xfail *-*-netware* } 0 } */
8
9 extern void abort (void);
10 extern void exit (int);
11
12 int foo (void)
13 {
14   int bar (int x)
15   {
16     return x + 3;
17   }
18   return bar (1) + bar (2);
19 }
20
21 int main (void)
22 {
23   if (foo () != 9)
24     abort ();
25   exit (0);
26 }