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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr39855.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR c/39855 */
2
/* { dg-do run { target { int32plus } } } */
3
 
4
extern void abort (void);
5
 
6
int i, j, k;
7
 
8
int
9
foo (void)
10
{
11
  return ++i;
12
}
13
 
14
int
15
main ()
16
{
17
  if (__CHAR_BIT__ != 8 || sizeof (int) != 4)
18
    return 0;
19
  j = foo () << 30 << 2;
20
  k = (unsigned) foo () >> 16 >> 16;
21
  if (i != 2 || j != 0 || k != 0)
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.