simple tgmath test
[libm] / test / tgmath / t.c
1 #include "tgmath.h"
2 #include <stdio.h>
3 #include <stdint.h>
4
5
6 int main()
7 {
8         long double i = sin(1);
9         long double d = sin(1.0);
10         long double f = sin(1.0f);
11         long double l = sin(1.0l);
12
13         long double complex dc = sin(1.0+0*I);
14         long double complex fc = sin(1.0f+0*I);
15         long double complex lc = sin(1.0l+0*I);
16
17         printf("i  %2u %La\n", sizeof sin(1), i);
18         printf("d  %2u %La\n", sizeof sin(1.0), d);
19         printf("f  %2u %La\n", sizeof sin(1.0f), f);
20         printf("l  %2u %La\n", sizeof sin(1.0l), l);
21
22         printf("dc %2u %La %La\n", sizeof sin(1.0+0*I), creall(dc), cimagl(dc));
23         printf("fc %2u %La %La\n", sizeof sin(1.0f+0*I), creall(fc), cimagl(fc));
24         printf("lc %2u %La %La\n", sizeof sin(1.0l+0*I), creall(lc), cimagl(lc));
25         return 0;
26 }