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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [920721-3.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
static inline fu (unsigned short data)
2
{
3
  return data;
4
}
5
ru(i)
6
{
7
   if(fu(i++)!=5)abort();
8
   if(fu(++i)!=7)abort();
9
}
10
static inline fs (signed short data)
11
{
12
  return data;
13
}
14
rs(i)
15
{
16
   if(fs(i++)!=5)abort();
17
   if(fs(++i)!=7)abort();
18
}
19
 
20
 
21
main()
22
{
23
  ru(5);
24
  rs(5);
25
  exit(0);
26
}

powered by: WebSVN 2.1.0

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