Lines Matching refs:width

22 void test_printf_c_const (int width)  in test_printf_c_const()  argument
44 if (width > INT_MAX - 1) in test_printf_c_const()
45 width = INT_MAX - 1; in test_printf_c_const()
47 T ("%*c", width, '1'); in test_printf_c_const()
48 T ("X%*c", width, '1'); in test_printf_c_const()
49 T ("%*cY", width, '1'); in test_printf_c_const()
51 T ("%*c", width, '1'); in test_printf_c_const()
52 T ("X%*c", width, '1'); in test_printf_c_const()
53 T ("%*cY", width, '1'); in test_printf_c_const()
55 T ("%*c%*c", width, '1', width, '2'); in test_printf_c_const()
56 T ("X%*cY%*cZ", width, '1', width, '2'); in test_printf_c_const()
58 if (width < 4096) in test_printf_c_const()
59 width = 4096; in test_printf_c_const()
61 T ("%*c", width, '1'); in test_printf_c_const()
62 T ("X%*c", width, '1'); in test_printf_c_const()
63 T ("%*cY", width, '1'); in test_printf_c_const()
65 if (width < INT_MAX - 1) in test_printf_c_const()
66 width = INT_MAX - 1; in test_printf_c_const()
68 T ("%*c", width, '1'); in test_printf_c_const()
69 T ("X%*c", width, '2'); in test_printf_c_const()
70 T ("%*cY", width, '3'); in test_printf_c_const()
71 …T ("X%*cY", width, '4'); /* { dg-warning ".Y. directive output of 1 bytes causes result to exce… in test_printf_c_const()
77 void test_printf_s_const (int width, const char *s) in test_printf_s_const() argument
97 if (width > INT_MAX - 1) in test_printf_s_const()
98 width = INT_MAX - 1; in test_printf_s_const()
100 T ("%*s", width, s); in test_printf_s_const()
101 T ("X%*s", width, s); in test_printf_s_const()
102 T ("%*sY", width, s); in test_printf_s_const()
104 T ("%*s", width, s); in test_printf_s_const()
105 T ("X%*s", width, s); in test_printf_s_const()
106 T ("%*sY", width, s); in test_printf_s_const()
108 T ("%*s%*s", width, s, width, s); in test_printf_s_const()
109 T ("X%*sY%*sZ", width, s, width, s); in test_printf_s_const()
111 if (width < 4096) in test_printf_s_const()
112 width = 4096; in test_printf_s_const()
114 T ("%*s", width, s); in test_printf_s_const()
115 T ("X%*s", width, s); in test_printf_s_const()
116 T ("%*sY", width, s); in test_printf_s_const()
118 if (width < INT_MAX - 1) in test_printf_s_const()
119 width = INT_MAX - 1; in test_printf_s_const()
121 T ("%*s", width, s); in test_printf_s_const()
122 T ("X%*s", width, s); in test_printf_s_const()
123 T ("%*sY", width, s); in test_printf_s_const()
124 …T ("X%*sY", width, s); /* { dg-warning ".Y. directive output of 1 bytes causes result to exce… in test_printf_s_const()
129 void test_printf_ls_const (int width, const wchar_t *s) in test_printf_ls_const() argument
149 if (width > INT_MAX - 1) in test_printf_ls_const()
150 width = INT_MAX - 1; in test_printf_ls_const()
152 T ("%*ls", width, s); in test_printf_ls_const()
153 T ("X%*ls", width, s); in test_printf_ls_const()
154 T ("%*lsY", width, s); in test_printf_ls_const()
156 T ("%*ls", width, s); in test_printf_ls_const()
157 T ("X%*ls", width, s); in test_printf_ls_const()
158 T ("%*lsY", width, s); in test_printf_ls_const()
160 T ("%*ls%*ls", width, s, width, s); in test_printf_ls_const()
161 T ("X%*lsY%*lsZ", width, s, width, s); in test_printf_ls_const()
163 if (width < 4096) in test_printf_ls_const()
164 width = 4096; in test_printf_ls_const()
166 T ("%*ls", width, s); in test_printf_ls_const()
167 T ("X%*ls", width, s); in test_printf_ls_const()
168 T ("%*lsY", width, s); in test_printf_ls_const()
170 if (width < INT_MAX - 1) in test_printf_ls_const()
171 width = INT_MAX - 1; in test_printf_ls_const()
173 T ("%*ls", width, s); in test_printf_ls_const()
174 T ("X%*ls", width, s); in test_printf_ls_const()
175 T ("%*lsY", width, s); in test_printf_ls_const()
176 …T ("X%*lsY", width, s); /* { dg-warning ".Y. directive output of 1 bytes causes result to exce… in test_printf_ls_const()
185 void test_printf_chk_s_const (int width) in test_printf_chk_s_const() argument
207 if (width > INT_MAX - 1) in test_printf_chk_s_const()
208 width = INT_MAX - 1; in test_printf_chk_s_const()
210 T (0, "%*s", width, s); in test_printf_chk_s_const()
211 T (0, "X%*s", width, s); in test_printf_chk_s_const()
212 T (0, "%*sY", width, s); in test_printf_chk_s_const()
214 T (0, "%*s", width, s); in test_printf_chk_s_const()
215 T (0, "X%*s", width, s); in test_printf_chk_s_const()
216 T (0, "%*sY", width, s); in test_printf_chk_s_const()
218 T (0, "%*s%*s", width, s, width, s); in test_printf_chk_s_const()
219 T (0, "X%*sY%*sZ", width, s, width, s); in test_printf_chk_s_const()
221 if (width < 4096) in test_printf_chk_s_const()
222 width = 4096; in test_printf_chk_s_const()
224 T (0, "%*s", width, s); in test_printf_chk_s_const()
225 T (0, "X%*s", width, s); in test_printf_chk_s_const()
226 T (0, "%*sY", width, s); in test_printf_chk_s_const()
228 if (width < INT_MAX - 1) in test_printf_chk_s_const()
229 width = INT_MAX - 1; in test_printf_chk_s_const()
231 T (0, "%*s", width, s); in test_printf_chk_s_const()
232 T (0, "X%*s", width, s); in test_printf_chk_s_const()
233 T (0, "%*sY", width, s); in test_printf_chk_s_const()
234 …T (0, "X%*sY", width, s); /* { dg-warning ".Y. directive output of 1 bytes causes result to e… in test_printf_chk_s_const()
243 void test_printf_unlocked_s_const (int width) in test_printf_unlocked_s_const() argument
265 if (width > INT_MAX - 1) in test_printf_unlocked_s_const()
266 width = INT_MAX - 1; in test_printf_unlocked_s_const()
268 T ("%*s", width, s); in test_printf_unlocked_s_const()
269 T ("X%*s", width, s); in test_printf_unlocked_s_const()
270 T ("%*sY", width, s); in test_printf_unlocked_s_const()
272 T ("%*s", width, s); in test_printf_unlocked_s_const()
273 T ("X%*s", width, s); in test_printf_unlocked_s_const()
274 T ("%*sY", width, s); in test_printf_unlocked_s_const()
276 T ("%*s%*s", width, s, width, s); in test_printf_unlocked_s_const()
277 T ("X%*sY%*sZ", width, s, width, s); in test_printf_unlocked_s_const()
279 if (width < 4096) in test_printf_unlocked_s_const()
280 width = 4096; in test_printf_unlocked_s_const()
282 T ("%*s", width, s); in test_printf_unlocked_s_const()
283 T ("X%*s", width, s); in test_printf_unlocked_s_const()
284 T ("%*sY", width, s); in test_printf_unlocked_s_const()
286 if (width < INT_MAX - 1) in test_printf_unlocked_s_const()
287 width = INT_MAX - 1; in test_printf_unlocked_s_const()
289 T ("%*s", width, s); in test_printf_unlocked_s_const()
290 T ("X%*s", width, s); in test_printf_unlocked_s_const()
291 T ("%*sY", width, s); in test_printf_unlocked_s_const()
292 …T ("X%*sY", width, s); /* { dg-warning ".Y. directive output of 1 bytes causes result to exce… in test_printf_unlocked_s_const()