Commit 2b342bc1 by Alexander Monakov

Add tests missing from previous commit.

	PR middle-end/42245
	* gcc.dg/pr42245.c: New.
	* gcc.dg/pr42245-2.c: New.

From-SVN: r155891
parent b59ab570
/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */
/* { dg-options "-O2 -fselective-scheduling -fsel-sched-pipelining" } */
int
strictly_smaller_name (char *s, char *t)
{
int ss, tt;
while ((*s != '\0') || (*t != '\0'))
{
if (*s == '\0')
ss = '*';
else
ss = *s++;
if (*t != '\0')
tt = *t;
if (ss == tt)
return 0;
}
}
/* { 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)
{
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment