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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20081117-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
extern void abort (void);
2
 
3
struct s
4
{
5
  unsigned long long a:16;
6
  unsigned long long b:32;
7
  unsigned long long c:16;
8
};
9
 
10
__attribute__ ((noinline)) unsigned
11
f (struct s s, unsigned i)
12
{
13
  return s.b == i;
14
}
15
 
16
struct s s = { 1, 0x87654321u, 2};
17
 
18
int
19
main ()
20
{
21
  if (!f (s, 0x87654321u))
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.