Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/c99-tgmath-3.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
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 exp on a complex invokes cexp. */ | |
9 #include <tgmath.h> | |
10 | |
11 complex double foo(complex double x) | |
12 { | |
13 return exp(x); | |
14 } | |
15 | |
16 /* { dg-final { scan-assembler "cexp" } } */ |