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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr46398.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
/* { dg-do run } */
2
 
3
int __attribute__((noinline))
4
test (int token)
5
{
6
  int done = 0;
7
  int virtual_p = 0;
8
  while (!done)
9
    {
10
      if (token == 42)
11
        virtual_p = 1;
12
      else
13
        done = 1;
14
    }
15
  return virtual_p;
16
}
17
extern void abort (void);
18
int
19
main()
20
{
21
  if (test (0) != 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.