diff options
author | sirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-21 22:16:04 +0000 |
---|---|---|
committer | sirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-21 22:16:04 +0000 |
commit | 027397fc492d82cc8dac27f05bdf4b1fe93889b0 (patch) | |
tree | 2583a13ce6c1576f5d10a64ef49fa3d66448daac /gcc/testsuite | |
parent | ea7ef9ff84bac4e07c2ac831ffa4cdd3a758e3b6 (diff) | |
download | gcc-027397fc492d82cc8dac27f05bdf4b1fe93889b0.tar.gz |
2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* gcc.c-torture/compile/20020121-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49056 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20020121-1.c | 30 |
2 files changed, 34 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9ada70f7c4f..e47a075dda8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.c-torture/compile/20020121-1.c b/gcc/testsuite/gcc.c-torture/compile/20020121-1.c new file mode 100644 index 00000000000..f8950f4ce8b --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20020121-1.c @@ -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; +} + |