PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-tgmath-2.c
blob1a1153cc6eaeab1e0d6086b58e91b0bae18bb7ee
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-require-effective-target tgmath_h } */
8 /* Test that invoking type-generic sin on a float invokes sinf. */
9 #include <tgmath.h>
11 float foo(float x)
13 return sin(x);
16 /* { dg-final { scan-assembler "sinf" } } */