Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/c99-tgmath-3.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
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-require-effective-target tgmath_h } */ | |
6 | |
7 /* Test that invoking type-generic exp on a complex invokes cexp. */ | |
8 #include <tgmath.h> | |
9 | |
10 complex double foo(complex double x) | |
11 { | |
12 return exp(x); | |
13 } | |
14 | |
15 /* { dg-final { scan-assembler "cexp" } } */ |