]>
Commit | Line | Data |
---|---|---|
1617e5ee GK |
1 | /* Test for <tgmath.h> in C99. */ |
2 | /* Origin: Matt Austern <austern@apple.com> | |
da2ce74a | 3 | /* { dg-do compile { target c99_runtime } } */ |
1617e5ee | 4 | /* { dg-options "-std=iso9899:1999" } */ |
da2ce74a | 5 | /* { dg-add-options c99_runtime } */ |
1617e5ee GK |
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 | ||
935cb9ac | 15 | /* { dg-final { scan-assembler "cexp" } } */ |