comparison gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-18.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
16 T ("%%"); /* { dg-warning ".%%. directive writing 1 byte" } */ 16 T ("%%"); /* { dg-warning ".%%. directive writing 1 byte" } */
17 17
18 T ("%A", 0.0); /* { dg-warning ".%A. directive writing between 6 and 20 " } */ 18 T ("%A", 0.0); /* { dg-warning ".%A. directive writing between 6 and 20 " } */
19 T ("%a", 0.0); /* { dg-warning ".%a. directive writing between 6 and 20 " } */ 19 T ("%a", 0.0); /* { dg-warning ".%a. directive writing between 6 and 20 " } */
20 20
21 T ("%C", 'a'); /* { dg-warning ".%C. directive writing 1 byte" "bug 80537" { xfail *-*-* } } */ 21 T ("%C", L'a'); /* { dg-warning ".%C. directive writing up to 6 bytes" } */
22 T ("%c", 'a'); /* { dg-warning ".%c. directive writing 1 byte" } */ 22 T ("%c", 'a'); /* { dg-warning ".%c. directive writing 1 byte" } */
23 23
24 T ("%d", 12); /* { dg-warning ".%d. directive writing 2 bytes" } */ 24 T ("%d", 12); /* { dg-warning ".%d. directive writing 2 bytes" } */
25 T ("% d", 12); /* { dg-warning ".% d. directive writing 3 bytes" } */ 25 T ("% d", 12); /* { dg-warning ".% d. directive writing 3 bytes" } */
26 T ("%-d", 123); /* { dg-warning ".%-d. directive writing 3 bytes" } */ 26 T ("%-d", 123); /* { dg-warning ".%-d. directive writing 3 bytes" } */
91 T ("%#o", 999); /* { dg-warning ".%#o. directive writing 5 bytes" } */ 91 T ("%#o", 999); /* { dg-warning ".%#o. directive writing 5 bytes" } */
92 92
93 T ("%x", 1234); /* { dg-warning ".%x. directive writing 3 bytes" } */ 93 T ("%x", 1234); /* { dg-warning ".%x. directive writing 3 bytes" } */
94 T ("%#X", 1235); /* { dg-warning ".%#X. directive writing 5 bytes" } */ 94 T ("%#X", 1235); /* { dg-warning ".%#X. directive writing 5 bytes" } */
95 95
96 T ("%S", L"1"); /* { dg-warning ".%S. directive writing 1 byte" } */ 96 T ("%S", L"1"); /* { dg-warning ".%S. directive writing up to 6 bytes" } */
97 T ("%ls", L"12"); /* { dg-warning ".%ls. directive writing up to 12 bytes" } */
97 T ("%-s", "1"); /* { dg-warning ".%-s. directive writing 1 byte" } */ 98 T ("%-s", "1"); /* { dg-warning ".%-s. directive writing 1 byte" } */
98 99
99 /* Verify that characters in the source character set appear in 100 /* Verify that characters in the source character set appear in
100 the text of the warning unchanged (i.e., not as their equivalents 101 the text of the warning unchanged (i.e., not as their equivalents
101 in the execution character set on the target). The trailing %% 102 in the execution character set on the target). The trailing %%