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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [930126-1.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
struct s {
2
  unsigned long long a:8, b:32;
3
};
4
 
5
struct s
6
f(struct s x)
7
{
8
  x.b = 0xcdef1234;
9
  return x;
10
}
11
 
12
main()
13
{
14
  static struct s i;
15
  i.a = 12;
16
  i = f(i);
17
  if (i.a != 12 || i.b != 0xcdef1234)
18
    abort();
19
  exit(0);
20
}

powered by: WebSVN 2.1.0

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