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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [c99-tgmath-4.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Test for <tgmath.h> in C99. */
2
/* Origin: Matt Austern <austern@apple.com>
3
/* { dg-do compile { target c99_runtime } } */
4
/* { dg-options "-std=iso9899:1999" } */
5
/* { dg-add-options c99_runtime } */
6
/* { dg-skip-if "<complex.h> missing" { alpha*-dec-osf5* } } */
7
 
8
/* Test that invoking type-generic pow on complex float invokes cpowf. */
9
#include <tgmath.h>
10
 
11
complex double foo(complex float x, float y)
12
{
13
  return pow(x, y);
14
}
15
 
16
/* { dg-final { scan-assembler "cpowf" } } */

powered by: WebSVN 2.1.0

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