c99-tgmath-1.c: Require c99_runtime and add the associated options.
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-tgmath-4.c
blobd8dc043c261b4bba2cb58d18c9e933c85d485296
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 pow on complex float invokes cpowf. */
8 #include <tgmath.h>
10 complex double foo(complex float x, float y)
12 return pow(x, y);
15 /* { dg-final { scan-assembler "cpowf" } } */