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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [stackalign/] [nested-6.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
#ifndef NO_TRAMPOLINES
4
 
5
typedef __SIZE_TYPE__ size_t;
6
extern void abort (void);
7
extern void exit (int);
8
extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
9
 
10
int main ()
11
{
12
  __label__ nonlocal;
13
  int compare (const void *a, const void *b)
14
  {
15
    goto nonlocal;
16
  }
17
 
18
  char array[3];
19
  qsort (array, 3, 1, compare);
20
  abort ();
21
 
22
 nonlocal:
23
  exit (0);
24
}
25
 
26
#else
27
int main() { return 0; }
28
#endif

powered by: WebSVN 2.1.0

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