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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 688 jeremybenn
int main()
2
{
3
  int b = 0;
4
 
5
  struct {
6
    unsigned int bit0:1;
7
    unsigned int bit1:1;
8
    unsigned int bit2:1;
9
    unsigned int bit3:1;
10
    unsigned int bit4:1;
11
    unsigned int bit5:1;
12
    unsigned int bit6:1;
13
    unsigned int bit7:1;
14
  } sdata = {0x01};
15
 
16
  while ( sdata.bit0-- > 0 ) {
17
    b++ ;
18
    if ( b > 100 ) break;
19
  }
20
 
21
  if (b != 1)
22
    abort ();
23
  return 0;
24
}
25
 

powered by: WebSVN 2.1.0

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