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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr25737.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
extern void abort (void);
2
 
3
struct delay_block {
4
  struct delay_block *succ;
5
};
6
 
7
static struct delay_block Timer_Queue;
8
 
9
struct delay_block* time_enqueue (struct delay_block *d)
10
{
11
  struct delay_block *q = Timer_Queue.succ;
12
  d->succ =  (void *)0;
13
  return Timer_Queue.succ;
14
}
15
 
16
int main(void)
17
{
18
  Timer_Queue.succ = &Timer_Queue;
19
  if (time_enqueue (&Timer_Queue) != (void*)0)
20
    abort ();
21
  return 0;
22
}
23
 

powered by: WebSVN 2.1.0

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