PR middle-end/27945
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-tgmath-2.c
blob22435f3f9a488fb73e0b469ce0df794368d74ec3
1 /* Test for <tgmath.h> in C99. */
2 /* Origin: Matt Austern <austern@apple.com>
3 /* { dg-do compile } */
4 /* { dg-options "-std=iso9899:1999" } */
6 /* Test that invoking type-generic sin on a float invokes sinf. */
7 #include <tgmath.h>
9 float foo(float x)
11 return sin(x);
14 /* { dg-final { scan-assembler "sinf" } } */