summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20020121-1.c
blob: f8950f4ce8bbff6d9988552bcd6c987ce3e3514e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
}