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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr33887-3.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do run } */
2
 
3
extern "C" void abort (void);
4
 
5
struct s
6
{
7
  unsigned long long f1 : 40;
8
  unsigned int f2 : 24;
9
};
10
 
11
s sv;
12
 
13
void __attribute__((noinline)) foo(unsigned int i)
14
{
15
  unsigned int tmp;
16
  sv.f2 = i;
17
  tmp = sv.f2;
18
  if (tmp != 0)
19
    abort ();
20
}
21
 
22
int main()
23
{
24
  foo (0xff000000u);
25
  return 0;
26
}

powered by: WebSVN 2.1.0

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