OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr40579.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
extern void abort (void);
2
static char * __attribute__((noinline))
3
itos(int num)
4
{
5
  return (char *)0;
6
}
7
static void __attribute__((noinline))
8
foo(int i, const char *x)
9
{
10
  if (i >= 4)
11
    abort ();
12
}
13
int main()
14
{
15
  int x = -__INT_MAX__ + 3;
16
  int i;
17
 
18
  for (i = 0; i < 4; ++i)
19
    {
20
      char *p;
21
      --x;
22
      p = itos(x);
23
      foo(i, p);
24
    }
25
 
26
  return 0;
27
}
28
 

powered by: WebSVN 2.1.0

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