20020121-1.c: New test.

2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* gcc.c-torture/compile/20020121-1.c: New test.

From-SVN: r49056
This commit is contained in:
Franz Sirl 2002-01-21 22:16:04 +00:00 committed by Franz Sirl
parent e5f54c4567
commit 38e583fd25
2 changed files with 34 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* gcc.c-torture/compile/20020121-1.c: New test.
2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
* lib/g77.exp (g77_link_flags): Remove check for libg2c.so in setting

View File

@ -0,0 +1,30 @@
/* This testcase resulted in a 'unrecognizeable insn' on powerpc-linux-gnu
because of a missing trunc_int_for_mode in simplify_and_const_int. */
struct display {
struct disphist *hstent;
int pid;
int status;
};
struct disphist {
struct disphist *next;
char *name;
int startTries;
unsigned rLogin:2,
sd_how:2,
sd_when:2,
lock:1,
goodExit:1;
char *nuser, *npass, **nargs;
};
void
StartDisplay (struct display *d)
{
d->pid = 0;
d->status = 0;
d->hstent->lock = d->hstent->rLogin = d->hstent->goodExit =
d->hstent->sd_how = d->hstent->sd_when = 0;
}