gcc/testsuite/gcc.dg/c99-tgmath-4.c
raw| 1 | /* Test for <tgmath.h> in C99. */ |
| 2 | /* Origin: Matt Austern <[email protected]> |
| 3 | /* { dg-do compile { target c99_runtime } } */ |
| 4 | /* { dg-options "-std=iso9899:1999" } */ |
| 5 | /* { dg-require-effective-target tgmath_h } */ |
| 6 | |
| 7 | /* Test that invoking type-generic pow on complex float invokes cpowf. */ |
| 8 | #include <tgmath.h> |
| 9 | |
| 10 | complex double foo(complex float x, float y) |
| 11 | { |
| 12 | return pow(x, y); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler "cpowf" } } */ |