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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20051012-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
extern void abort (void);
2
 
3
struct type
4
{
5
  int *a;
6
 
7
  int b:16;
8
  unsigned int p:9;
9
} t;
10
 
11
unsigned int
12
foo ()
13
{
14
  return t.p;
15
}
16
 
17
int
18
main (void)
19
{
20
  t.p = 8;
21
  if (foo (t) != 8)
22
    abort ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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