From 694a2f6ea681d5e14af695d1c1848a1bd223d69c Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 26 Oct 2005 07:25:57 +0000 Subject: ia64.c (ia64_output_function_profiler): Emit an indirect call to _mcount if the function needs a static chain. * config/ia64/ia64.c (ia64_output_function_profiler): Emit an indirect call to _mcount if the function needs a static chain. From-SVN: r105917 --- gcc/testsuite/gcc.dg/nested-func-4.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/nested-func-4.c (limited to 'gcc/testsuite/gcc.dg') diff --git a/gcc/testsuite/gcc.dg/nested-func-4.c b/gcc/testsuite/gcc.dg/nested-func-4.c new file mode 100644 index 0000000..5a17f78 --- /dev/null +++ b/gcc/testsuite/gcc.dg/nested-func-4.c @@ -0,0 +1,21 @@ +/* { dg-do run } */ +/* { dg-options "-pg" } */ + +extern void abort(void); + +void foo(int i) +{ + void bar(void) + { + if (i != 2) + abort (); + } + + bar(); +} + +int main(void) +{ + foo (2); + return 0; +} -- cgit v1.1