This source file includes following definitions.
- test_function
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #include "infinity.h"
20
21 static void
22 test_function (int (*my_printf) (const char *, ...))
23 {
24
25
26
27
28
29 my_printf ("%ju %d\n", (uintmax_t) 12345671, 33, 44, 55);
30
31 my_printf ("%zu %d\n", (size_t) 12345672, 33, 44, 55);
32
33 my_printf ("%tu %d\n", (ptrdiff_t) 12345673, 33, 44, 55);
34
35
36
37
38
39 my_printf ("%a %d\n", 0.0, 33, 44, 55);
40
41
42 my_printf ("%a %d\n", Infinityd (), 33, 44, 55);
43
44
45 my_printf ("%a %d\n", - Infinityd (), 33, 44, 55);
46
47
48
49
50 my_printf ("%010a %d\n", Infinityd (), 33, 44, 55);
51
52
53
54
55 my_printf ("%f %d\n", 12.75, 33, 44, 55);
56
57
58 my_printf ("%f %d\n", 1234567.0, 33, 44, 55);
59
60
61 my_printf ("%f %d\n", -0.03125, 33, 44, 55);
62
63
64 my_printf ("%f %d\n", 0.0, 33, 44, 55);
65
66
67 my_printf ("%015f %d\n", 1234.0, 33, 44, 55);
68
69
70 my_printf ("%.f %d\n", 1234.0, 33, 44, 55);
71
72
73 my_printf ("%.2f %d\n", 999.95, 33, 44, 55);
74
75
76 my_printf ("%.2f %d\n", 999.996, 33, 44, 55);
77
78
79 my_printf ("%Lf %d\n", 12.75L, 33, 44, 55);
80
81
82 my_printf ("%Lf %d\n", 1234567.0L, 33, 44, 55);
83
84
85 my_printf ("%Lf %d\n", -0.03125L, 33, 44, 55);
86
87
88 my_printf ("%Lf %d\n", 0.0L, 33, 44, 55);
89
90
91 my_printf ("%015Lf %d\n", 1234.0L, 33, 44, 55);
92
93
94 my_printf ("%.Lf %d\n", 1234.0L, 33, 44, 55);
95
96
97 my_printf ("%.2Lf %d\n", 999.95L, 33, 44, 55);
98
99
100 my_printf ("%.2Lf %d\n", 999.996L, 33, 44, 55);
101
102
103
104
105 my_printf ("%F %d\n", 12.75, 33, 44, 55);
106
107
108 my_printf ("%F %d\n", 1234567.0, 33, 44, 55);
109
110
111 my_printf ("%F %d\n", -0.03125, 33, 44, 55);
112
113
114 my_printf ("%F %d\n", 0.0, 33, 44, 55);
115
116
117 my_printf ("%015F %d\n", 1234.0, 33, 44, 55);
118
119
120 my_printf ("%.F %d\n", 1234.0, 33, 44, 55);
121
122
123 my_printf ("%.2F %d\n", 999.95, 33, 44, 55);
124
125
126 my_printf ("%.2F %d\n", 999.996, 33, 44, 55);
127
128
129 my_printf ("%LF %d\n", 12.75L, 33, 44, 55);
130
131
132 my_printf ("%LF %d\n", 1234567.0L, 33, 44, 55);
133
134
135 my_printf ("%LF %d\n", -0.03125L, 33, 44, 55);
136
137
138 my_printf ("%LF %d\n", 0.0L, 33, 44, 55);
139
140
141 my_printf ("%015LF %d\n", 1234.0L, 33, 44, 55);
142
143
144 my_printf ("%.LF %d\n", 1234.0L, 33, 44, 55);
145
146
147 my_printf ("%.2LF %d\n", 999.95L, 33, 44, 55);
148
149
150 my_printf ("%.2LF %d\n", 999.996L, 33, 44, 55);
151
152
153
154 my_printf ("%2$d %1$d\n", 33, 55);
155 }