tgmath.h return type fixes, non-float argument fixes
[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), creal(dc), cimag(dc));
23         printf("fc %2u %La %La\n", sizeof sin(1.0f+0*I), creal(fc), cimag(fc));
24         printf("lc %2u %La %La\n", sizeof sin(1.0l+0*I), creal(lc), cimag(lc));
25
26         printf("sizeof pow(I,1) = %2u\n", sizeof pow(I,1));
27         printf("sizeof pow(I,1.0f) = %2u\n", sizeof pow(I,1.0f));
28         return 0;
29 }