summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr47141.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-10 16:48:42 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-10 16:48:42 +0000
commitc13d6d8f5f6dc7c57ada800e75f36080efeda6a4 (patch)
tree3414c4dc8a1eecc61ab246c7126be1ca6fb775d8 /gcc/testsuite/gcc.c-torture/compile/pr47141.c
parenta15d5ede1b745b109884a8f94950aefc66836037 (diff)
downloadgcc-c13d6d8f5f6dc7c57ada800e75f36080efeda6a4.tar.gz
* PR tree-optimization/47141
* ipa-split.c (split_function): Handle case where we are returning a value and the return block has a virtual operand phi. * gcc.c-torture/compile/pr47141.c: New test. Approved by richie in IRC git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168634 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr47141.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr47141.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr47141.c b/gcc/testsuite/gcc.c-torture/compile/pr47141.c
new file mode 100644
index 00000000000..875e0fdd1c2
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr47141.c
@@ -0,0 +1,16 @@
+int
+foo (__UINTPTR_TYPE__ x)
+{
+ int a = 6;
+ int *b = &a;
+ if (x)
+ for (a = 0; a; a++)
+ ;
+ return a;
+}
+
+void
+bar (void)
+{
+ foo ((__UINTPTR_TYPE__) foo);
+}