Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/c99-tgmath-4.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 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 } */ | |
7 | |
8 /* Test that invoking type-generic pow on complex float invokes cpowf. */ | |
9 #include <tgmath.h> | |
10 | |
11 complex double foo(complex float x, float y) | |
12 { | |
13 return pow(x, y); | |
14 } | |
15 | |
16 /* { dg-final { scan-assembler "cpowf" } } */ |