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/] [arm/] [fp16-unprototyped-1.c] - Blame information for rev 313

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 313 jeremybenn
/* Test promotion of __fp16 to double as arguments to unprototyped
2
   function in another compilation unit.  */
3
 
4
/* { dg-do run } */
5
/* { dg-options "-mfp16-format=ieee" } */
6
/* { dg-additional-sources "fp16-unprototyped-2.c" } */
7
 
8
#include <stdlib.h>
9
 
10
extern int f ();
11
 
12
static __fp16 x = 42.0;
13
static __fp16 y = -42.0;
14
 
15
int
16
main (void)
17
{
18
  if (!f (x, y))
19
    abort ();
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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