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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20100827-1.c] - Blame information for rev 711

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

Line No. Rev Author Line
1 688 jeremybenn
extern void abort (void);
2
int __attribute__((noinline,noclone))
3
foo (char *p)
4
{
5
  int h = 0;
6
  do
7
    {
8
      if (*p == '\0')
9
        break;
10
      ++h;
11
      if (p == 0)
12
        abort ();
13
      ++p;
14
    }
15
  while (1);
16
  return h;
17
}
18
int main()
19
{
20
  if (foo("a") != 1)
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.