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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 688 jeremybenn
/* Copyright (C) 2000  Free Software Foundation  */
2
/* by Alexandre Oliva <aoliva@redhat.com> */
3
 
4
#include <stdlib.h>
5
 
6
void bar (int);
7
void foo (int *);
8
 
9
int main () {
10
  static int a[] = { 0, 1, 2 };
11
  int *i = &a[sizeof(a)/sizeof(*a)];
12
 
13
  while (i-- > a)
14
    foo (i);
15
 
16
  exit (0);
17
}
18
 
19
void baz (int, int);
20
 
21
void bar (int i) { baz (i, i); }
22
void foo (int *i) { bar (*i); }
23
 
24
void baz (int i, int j) {
25
  if (i != j)
26
    abort ();
27
}

powered by: WebSVN 2.1.0

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