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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20030307-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* PR optimization/8726 */
2
/* Originator: Paul Eggert <eggert@twinsun.com> */
3
 
4
/* Verify that GCC doesn't miscompile tail calls on Sparc. */
5
 
6
extern void abort(void);
7
 
8
int fcntl_lock(int fd, int op, long long offset, long long count, int type);
9
 
10
int vfswrap_lock(char *fsp, int fd, int op, long long offset, long long count, int type)
11
{
12
  return fcntl_lock(fd, op, offset, count, type);
13
}
14
 
15
int fcntl_lock(int fd, int op, long long offset, long long count, int type)
16
{
17
  return type;
18
}
19
 
20
int main(void)
21
{
22
  if (vfswrap_lock (0, 1, 2, 3, 4, 5) != 5)
23
    abort();
24
 
25
  return 0;
26
}

powered by: WebSVN 2.1.0

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