Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / c99-tgmath-3.c
blob83e34a23055a181de427502600ee44275b5d75f0
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-skip-if "<complex.h> missing" { alpha*-dec-osf5* } } */
8 /* Test that invoking type-generic exp on a complex invokes cexp. */
9 #include <tgmath.h>
11 complex double foo(complex double x)
13 return exp(x);
16 /* { dg-final { scan-assembler "cexp" } } */