OSDN Git Service

2009-10-16 Richard Guenther <rguenther@suse.de>
[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
7 /* Test that invoking type-generic sin on a float invokes sinf. */
8 #include <tgmath.h>
9
10 float foo(float x)
11 {
12   return sin(x);
13 }
14
15 /* { dg-final { scan-assembler "sinf" } } */