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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [x86_64/] [abi/] [callabi/] [func-indirect-2a.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* Test for cross x86_64<->w64 abi standard calls via variable.  */
2
/* { dg-do run { target i?86-*-linux* x86_64-*-linux* } } */
3
/* { dg-options "-O2 -mabi=ms -std=gnu99 -ffast-math -fno-builtin" } */
4
/* { dg-additional-sources "func-indirect-2b.c" } */
5
 
6
extern void __attribute__ ((sysv_abi)) abort (void);
7
typedef int (*func)(void *, char *, char *, short, long long);
8
extern func get_callback (void);
9
 
10
int __attribute__ ((sysv_abi))
11
main ()
12
{
13
  func callme = get_callback ();
14
  if (callme (0, 0, 0, 0x1234, 0x1234567890abcdefLL))
15
    abort ();
16
  return 0;
17
}

powered by: WebSVN 2.1.0

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