diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr42245.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr42245.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr42245.c b/gcc/testsuite/gcc.dg/pr42245.c new file mode 100644 index 000000000..98dd1d067 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr42245.c @@ -0,0 +1,30 @@ +/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ +/* { dg-options "-O2 -fselective-scheduling -fsel-sched-pipelining" } */ + +extern int N_words; +typedef struct DIS_node_struct DIS_node; +typedef struct CON_list_struct CON_list; + +struct DIS_node_struct +{ + CON_list *cl; +}; + +void +build_DIS_CON_tree (void) +{ + int w; + DIS_node *dnroot, *dn; + CON_list *child, *xchild; + for (w = 0; w < N_words; w++) + { + if (dnroot == ((void *) 0)) + { + dnroot = dn; + for (child = dn->cl; child != ((void *) 0); child = xchild) + { + } + } + } +} + |