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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [960301-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
struct foo {
2
  unsigned : 12;
3
  unsigned field : 4;
4
} foo;
5
unsigned oldfoo;
6
 
7
int
8
bar (unsigned k)
9
{
10
  oldfoo = foo.field;
11
  foo.field = k;
12
  if (k)
13
    return 1;
14
  return 2;
15
}
16
 
17
main ()
18
{
19
  if (bar (1U) != 1)
20
    abort ();
21
  exit (0);
22
}

powered by: WebSVN 2.1.0

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