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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [20110718-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
 
3
extern void abort (void);
4
struct X {
5
#if (__SIZEOF_LONG__ != __SIZEOF_INT__) && (__SIZEOF_LONG__ == 8)
6
  unsigned long i : 33;
7
#else
8
  unsigned long i;
9
#endif
10
};
11
unsigned long __attribute__((noinline))
12
foo (struct X *p)
13
{
14
  return ~p->i;
15
}
16
int main()
17
{
18
  struct X x;
19
  x.i = -1;
20
  if (foo (&x) != 0)
21
    abort ();
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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