summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20101010-1.c
diff options
context:
space:
mode:
authorcltang <cltang@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-15 07:07:26 +0000
committercltang <cltang@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-15 07:07:26 +0000
commit7f91ac8e8061975639d06f1af9171f2567637d77 (patch)
tree45497f46c16643e152b5e896913581b294552190 /gcc/testsuite/gcc.dg/20101010-1.c
parentb187df0843475b392ecde8af670e08c18ddcc0fb (diff)
downloadgcc-7f91ac8e8061975639d06f1af9171f2567637d77.tar.gz
2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
* ifcvt.c (find_active_insn_before): New function. (find_active_insn_after): New function. (cond_exec_process_if_block): Use new functions to replace prev_active_insn() and next_active_insn(). testsuite/ * gcc.dg/20101010-1.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165495 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20101010-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20101010-1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20101010-1.c b/gcc/testsuite/gcc.dg/20101010-1.c
new file mode 100644
index 00000000000..8d74bbf5a1d
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20101010-1.c
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fno-crossjumping" } */
+
+int foo (void)
+{
+ int len;
+ if (bar1 (&len))
+ {
+ char devpath [len];
+ if (bar2 (devpath) == len)
+ return len;
+ }
+ return -1;
+}