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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [stackalign/] [non-local-goto-4.c] - Blame information for rev 698

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
 
3
extern void abort (void);
4
extern void exit (int);
5
 
6
#ifdef STACK_SIZE
7
#define DEPTH ((STACK_SIZE) / 512 + 1)
8
#else
9
#define DEPTH 1000
10
#endif
11
 
12
#if ! defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES)
13
int
14
 
15
x(a)
16
{
17
  __label__ xlab;
18
  void y(a)
19
    {
20
      if (a==0)
21
        goto xlab;
22
      y (a-1);
23
    }
24
  y (a);
25
 xlab:;
26
  return a;
27
}
28
#endif
29
 
30
int
31
main ()
32
{
33
#if ! defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES)
34
  if (x (DEPTH) != DEPTH)
35
    abort ();
36
#endif
37
  exit (0);
38
}

powered by: WebSVN 2.1.0

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