gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-tgmath-3.c
blob3e983042751f34eaed7d1a1aff7fb96ac2c0e668
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 } */
7 /* Test that invoking type-generic exp on a complex invokes cexp. */
8 #include <tgmath.h>
10 complex double foo(complex double x)
12 return exp(x);
15 /* { dg-final { scan-assembler "cexp" } } */