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-2b.c] - Rev 801

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

/* Test for cross x86_64<->w64 abi standard calls via variable.  */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -ffast-math -fno-builtin" } */
 
typedef int (*func)(void *, char *, char *, short, long long);
 
static int
callback (void *ptr, char *string1, char *string2, short number,
	  long long rand)
{
  if (ptr != 0
      || string1 != 0
      || string2 != 0
      || number != 0x1234
      || rand != 0x1234567890abcdefLL)
    return 1;
  else
    return 0;
}
 
func
get_callback (void)
{
  return callback;
}
 

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

powered by: WebSVN 2.1.0

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