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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr40579.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 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.