OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [960608-1.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
typedef struct
2
{
3
  unsigned char a  : 2;
4
  unsigned char b  : 3;
5
  unsigned char c  : 1;
6
  unsigned char d  : 1;
7
  unsigned char e  : 1;
8
} a_struct;
9
 
10
foo (flags)
11
     a_struct *flags;
12
{
13
  return (flags->c != 0
14
          || flags->d != 1
15
          || flags->e != 1
16
          || flags->a != 2
17
          || flags->b != 3);
18
}
19
 
20
main ()
21
{
22
  a_struct flags;
23
 
24
  flags.c  = 0;
25
  flags.d  = 1;
26
  flags.e  = 1;
27
  flags.a  = 2;
28
  flags.b  = 3;
29
 
30
  if (foo (&flags) != 0)
31
    abort ();
32
  else
33
    exit (0);
34
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.