aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020121-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020121-1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020121-1.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020121-1.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020121-1.c
new file mode 100644
index 000000000..f8950f4ce
--- /dev/null
+++ b/gcc-4.9/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;
+}
+