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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20051012-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 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.