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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20031211-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
struct a { unsigned int bitfield : 1; };
2
 
3
unsigned int x;
4
 
5
main()
6
{
7
  struct a a = {0};
8
  x = 0xbeef;
9
  a.bitfield |= x;
10
  if (a.bitfield != 1)
11
    abort ();
12
  exit (0);
13
}

powered by: WebSVN 2.1.0

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