OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / c99-tgmath-2.c
1 /* 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 sin on a float invokes sinf. */
9 #include <tgmath.h>
10
11 float foo(float x)
12 {
13   return sin(x);
14 }
15
16 /* { dg-final { scan-assembler "sinf" } } */