summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/nested-func-5.c
diff options
context:
space:
mode:
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-19 13:19:24 +0000
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-19 13:19:24 +0000
commitd105e3e214b1e4b5a02875e81f5cd7decc813179 (patch)
treeb1f2569dbeec472f3edfbd1809d421e207699234 /gcc/testsuite/gcc.dg/nested-func-5.c
parentc0d8214cfc1742e2ccf99c86b917a5f231546744 (diff)
downloadgcc-d105e3e214b1e4b5a02875e81f5cd7decc813179.tar.gz
2006-09-19 Paul Brook <paul@codesourcery.com>
PR target/28516 gcc/ * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const. gcc/testsuite/ * gcc.dg/nested-func-5.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117056 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/nested-func-5.c')
-rw-r--r--gcc/testsuite/gcc.dg/nested-func-5.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/nested-func-5.c b/gcc/testsuite/gcc.dg/nested-func-5.c
new file mode 100644
index 00000000000..5076dbd5049
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/nested-func-5.c
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-fexceptions" } */
+/* PR28516: ICE generating ARM unwind directives for nested functions. */
+
+void ex(int (*)(void));
+void foo(int i)
+{
+ int bar(void)
+ {
+ return i;
+ }
+ ex(bar);
+}