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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [x86_64/] [abi/] [callabi/] [vaarg-5a.c] - Blame information for rev 328

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 328 jeremybenn
/* Test for cross x86_64<->w64 abi va_list calls.  */
2
/* { dg-do run { target i?86-*-linux* x86_64-*-linux* } } */
3
/* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin" } */
4
/* { dg-additional-sources "vaarg-5b.c" } */
5
 
6
extern void __attribute__ ((sysv_abi)) abort (void);
7
extern int fct2 (int, ...);
8
 
9
#define SZ_ARGS 1ll,2ll,3ll,4ll,5ll,6ll,7ll,0ll
10
 
11
int __attribute__ ((sysv_abi))
12
main()
13
{
14
  if (fct2 (-1, SZ_ARGS) != 0)
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.