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_fprintf) (FILE *, const char *, ...))
23 {
24
25
26
27
28
29 my_fprintf (stdout, "%ju %d\n", (uintmax_t) 12345671, 33, 44, 55);
30
31 my_fprintf (stdout, "%zu %d\n", (size_t) 12345672, 33, 44, 55);
32
33 my_fprintf (stdout, "%tu %d\n", (ptrdiff_t) 12345673, 33, 44, 55);
34
35
36
37
38
39 my_fprintf (stdout, "%a %d\n", 0.0, 33, 44, 55);
40
41
42 my_fprintf (stdout, "%a %d\n", Infinityd (), 33, 44, 55);
43
44
45 my_fprintf (stdout, "%a %d\n", - Infinityd (), 33, 44, 55);
46
47
48 my_fprintf (stdout, "%010a %d\n", Infinityd (), 33, 44, 55);
49
50
51
52
53 my_fprintf (stdout, "%f %d\n", 12.75, 33, 44, 55);
54
55
56 my_fprintf (stdout, "%f %d\n", 1234567.0, 33, 44, 55);
57
58
59 my_fprintf (stdout, "%f %d\n", -0.03125, 33, 44, 55);
60
61
62 my_fprintf (stdout, "%f %d\n", 0.0, 33, 44, 55);
63
64
65 my_fprintf (stdout, "%015f %d\n", 1234.0, 33, 44, 55);
66
67
68 my_fprintf (stdout, "%.f %d\n", 1234.0, 33, 44, 55);
69
70
71 my_fprintf (stdout, "%.2f %d\n", 999.95, 33, 44, 55);
72
73
74 my_fprintf (stdout, "%.2f %d\n", 999.996, 33, 44, 55);
75
76
77 my_fprintf (stdout, "%Lf %d\n", 12.75L, 33, 44, 55);
78
79
80 my_fprintf (stdout, "%Lf %d\n", 1234567.0L, 33, 44, 55);
81
82
83 my_fprintf (stdout, "%Lf %d\n", -0.03125L, 33, 44, 55);
84
85
86 my_fprintf (stdout, "%Lf %d\n", 0.0L, 33, 44, 55);
87
88
89 my_fprintf (stdout, "%015Lf %d\n", 1234.0L, 33, 44, 55);
90
91
92 my_fprintf (stdout, "%.Lf %d\n", 1234.0L, 33, 44, 55);
93
94
95 my_fprintf (stdout, "%.2Lf %d\n", 999.95L, 33, 44, 55);
96
97
98 my_fprintf (stdout, "%.2Lf %d\n", 999.996L, 33, 44, 55);
99
100
101
102
103 my_fprintf (stdout, "%F %d\n", 12.75, 33, 44, 55);
104
105
106 my_fprintf (stdout, "%F %d\n", 1234567.0, 33, 44, 55);
107
108
109 my_fprintf (stdout, "%F %d\n", -0.03125, 33, 44, 55);
110
111
112 my_fprintf (stdout, "%F %d\n", 0.0, 33, 44, 55);
113
114
115 my_fprintf (stdout, "%015F %d\n", 1234.0, 33, 44, 55);
116
117
118 my_fprintf (stdout, "%.F %d\n", 1234.0, 33, 44, 55);
119
120
121 my_fprintf (stdout, "%.2F %d\n", 999.95, 33, 44, 55);
122
123
124 my_fprintf (stdout, "%.2F %d\n", 999.996, 33, 44, 55);
125
126
127 my_fprintf (stdout, "%LF %d\n", 12.75L, 33, 44, 55);
128
129
130 my_fprintf (stdout, "%LF %d\n", 1234567.0L, 33, 44, 55);
131
132
133 my_fprintf (stdout, "%LF %d\n", -0.03125L, 33, 44, 55);
134
135
136 my_fprintf (stdout, "%LF %d\n", 0.0L, 33, 44, 55);
137
138
139 my_fprintf (stdout, "%015LF %d\n", 1234.0L, 33, 44, 55);
140
141
142 my_fprintf (stdout, "%.LF %d\n", 1234.0L, 33, 44, 55);
143
144
145 my_fprintf (stdout, "%.2LF %d\n", 999.95L, 33, 44, 55);
146
147
148 my_fprintf (stdout, "%.2LF %d\n", 999.996L, 33, 44, 55);
149
150
151
152 my_fprintf (stdout, "%2$d %1$d\n", 33, 55);
153 }