Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-tgmath-2.c
blob7b0cfa4c6ddf30b01a4bfc0389f440e06cee4a3e
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-require-effective-target tgmath_h } */
7 /* Test that invoking type-generic sin on a float invokes sinf. */
8 #include <tgmath.h>
10 float foo(float x)
12 return sin(x);
15 /* { dg-final { scan-assembler "sinf" } } */