/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.dg/format/ |
H A D | attr-5.c | 9 /* This scanf declaration is static, so can't be the system function. */ 10 static int scanf(const char *restrict, ...); 19 scanf("%ld", p); /* { dg-bogus "format" "static" } */ 23 /* Dummy definition of scanf. */ 25 scanf (const char *restrict fmt, ...) function
|
H A D | c99-scanf-1.c | 1 /* Test for scanf formats. Formats using C99 features, including cases 28 scanf ("%*d%*i%*o%*u%*x%*X%*a%*A%*e%*E%*f%*F%*g%*G%*s%*[abc]%*c%*p"); 29 scanf ("%*2d%*8s%*3c"); 30 scanf ("%*n", n); /* { dg-warning "suppress" "suppression of %n" } */ 31 scanf ("%*hd"); /* { dg-warning "together" "suppression with length" } */ 32 scanf ("%2d%3i%4o%5u%6x%7X%8a%9A%10e%11E%12f%13F%14g%15G%16s%3[abc]%4c%5p", 35 scanf ("%0d", ip); /* { dg-warning "width" "warning for zero width" } */ 36 scanf ("%3n", n); /* { dg-warning "width" "width with %n" } */ 38 scanf ("%hd%hi%ho%hu%hx%hX%hn", hp, hp, uhp, uhp, uhp, uhp, hn); 39 scanf (" [all...] |
H A D | attr-6.c | 20 scanf("%ld", p); /* { dg-warning "format" "implicit scanf" } */
|
H A D | warnll-1.c | 16 scanf ("%lld%lli%llo%llu%llx%llX%lln", llp, llp, 32 scanf ("%qd", llp); /* { dg-warning "C" "scanf %qd" } */ 33 scanf ("%qi", llp); /* { dg-warning "C" "scanf %qi" } */ 34 scanf ("%qo", ullp); /* { dg-warning "C" "scanf %qo" } */ 35 scanf ("%qu", ullp); /* { dg-warning "C" "scanf %qu" } */ 36 scanf (" [all...] |
H A D | c94-scanf-1.c | 1 /* Test for scanf formats. Changes in C94 to C90. */ 16 scanf ("%lc%ls%l[abc]", ls, ls, ls);
|
H A D | diag-2.c | 12 scanf ("%zu", &d); /* { dg-warning "size_t \\*" "correct arg type" } */
|
H A D | c90-scanf-4.c | 1 /* Test for scanf formats. Test that the C90 functions get their default 17 scanf ("%d", ip); 18 scanf ("%ld", ip); /* { dg-warning "format" "scanf" } */ 27 scanf (gettext ("%d"), ip); 28 scanf (gettext ("%ld"), ip); 29 scanf (dgettext ("", "%d"), ip); 30 scanf (dgettext ("", "%ld"), ip); 31 scanf (dcgettext ("", "%d", 0), ip); 32 scanf (dcgettex [all...] |
H A D | c99-scanf-3.c | 1 /* Test for scanf formats. Test that the C99 functions get their default 16 scanf ("%d", ip); 17 scanf ("%ld", ip); /* { dg-warning "format" "scanf" } */ 26 scanf (gettext ("%d"), ip); 27 scanf (gettext ("%ld"), ip); 28 scanf (dgettext ("", "%d"), ip); 29 scanf (dgettext ("", "%ld"), ip); 30 scanf (dcgettext ("", "%d", 0), ip); 31 scanf (dcgettex [all...] |
H A D | no-exargs-2.c | 16 /* With scanf formats, gaps in the used arguments are allowed only if the 20 scanf ("%3$d%1$d", ip, ip, ip); 22 scanf ("%3$d%1$d", ip, ip, ip, i); 23 scanf ("%3$d%1$d", ip, i, ip); /* { dg-warning "before used" "unused $ scanf non-pointer operand" } */
|
H A D | xopen-1.c | 15 /* The conversion specifiers C and S, for both printf and scanf, 52 scanf ("%C", ls); 53 scanf ("%S", ls); 54 scanf ("%*C%*S"); 55 scanf ("%2C%3S", ls, ls); 56 scanf ("%hC", ls); /* { dg-warning "length" "bad %hC" } */ 57 scanf ("%hhC", ls); /* { dg-warning "length" "bad %hhC" } */ 58 scanf ("%lC", ls); /* { dg-warning "length" "bad %lC" } */ 59 scanf ("%llC", ls); /* { dg-warning "length" "bad %llC" } */ 60 scanf (" [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.dg/format/ |
H A D | attr-6.c | 20 scanf("%ld", p); /* { dg-warning "format" "implicit scanf" } */
|
H A D | ms_c99-scanf-1.c | 1 /* Test for scanf formats. Formats using C99 features, including cases 29 scanf ("%*d%*i%*o%*u%*x%*X%*e%*E%*f%*g%*G%*s%*[abc]%*c%*p"); 30 scanf ("%*2d%*8s%*3c"); 31 scanf ("%*n", n); /* { dg-warning "suppress" "suppression of %n" } */ 32 scanf ("%*hd"); /* { dg-warning "together" "suppression with length" } */ 33 scanf ("%2d%3i%4o%5u%6x%7X%10e%11E%12f%14g%15G%16s%3[abc]%4c%5p", 36 scanf ("%0d", ip); /* { dg-warning "width" "warning for zero width" } */ 37 scanf ("%3n", n); /* { dg-warning "width" "width with %n" } */ 39 scanf ("%hd%hi%ho%hu%hx%hX%hn", hp, hp, uhp, uhp, uhp, uhp, hn); 40 scanf (" [all...] |
H A D | warnll-1.c | 16 scanf ("%lld%lli%llo%llu%llx%llX%lln", llp, llp, 32 scanf ("%qd", llp); /* { dg-warning "C" "scanf %qd" } */ 33 scanf ("%qi", llp); /* { dg-warning "C" "scanf %qi" } */ 34 scanf ("%qo", ullp); /* { dg-warning "C" "scanf %qo" } */ 35 scanf ("%qu", ullp); /* { dg-warning "C" "scanf %qu" } */ 36 scanf (" [all...] |
H A D | ms-warnI64-1.c | 21 scanf ("%I64d", llp); /* { dg-warning "'I64' ms_scanf length modifier" "scanf %I64d" } */ 22 scanf ("%I64i", llp); /* { dg-warning "'I64' ms_scanf length modifier" "scanf %I64i" } */ 23 scanf ("%I64o", ullp); /* { dg-warning "'I64' ms_scanf length modifier" "scanf %I64o" } */ 24 scanf ("%I64u", ullp); /* { dg-warning "'I64' ms_scanf length modifier" "scanf %I64u" } */ 25 scanf ("%I64x", ullp); /* { dg-warning "'I64' ms_scanf length modifier" "scanf [all...] |
H A D | c94-scanf-1.c | 1 /* Test for scanf formats. Changes in C94 to C90. */ 16 scanf ("%lc%ls%l[abc]", ls, ls, ls);
|
H A D | diag-2.c | 12 scanf ("%zu", &d); /* { dg-warning "size_t \\*" "correct arg type" } */
|
H A D | ms_c94-scanf-1.c | 1 /* Test for scanf formats. Changes in C94 to C90. */ 17 scanf ("%lc%ls%l[abc]", ls, ls, ls);
|
H A D | c90-scanf-4.c | 1 /* Test for scanf formats. Test that the C90 functions get their default 17 scanf ("%d", ip); 18 scanf ("%ld", ip); /* { dg-warning "format" "scanf" } */ 27 scanf (gettext ("%d"), ip); 28 scanf (gettext ("%ld"), ip); 29 scanf (dgettext ("", "%d"), ip); 30 scanf (dgettext ("", "%ld"), ip); 31 scanf (dcgettext ("", "%d", 0), ip); 32 scanf (dcgettex [all...] |
H A D | c99-scanf-3.c | 1 /* Test for scanf formats. Test that the C99 functions get their default 16 scanf ("%d", ip); 17 scanf ("%ld", ip); /* { dg-warning "format" "scanf" } */ 26 scanf (gettext ("%d"), ip); 27 scanf (gettext ("%ld"), ip); 28 scanf (dgettext ("", "%d"), ip); 29 scanf (dgettext ("", "%ld"), ip); 30 scanf (dcgettext ("", "%d", 0), ip); 31 scanf (dcgettex [all...] |
H A D | ms_c90-scanf-4.c | 1 /* Test for scanf formats. Test that the C90 functions get their default 18 scanf ("%d", ip); 19 scanf ("%ld", ip); /* { dg-warning "format" "scanf" } */ 25 scanf (gettext ("%d"), ip); 26 scanf (gettext ("%ld"), ip); 27 scanf (dgettext ("", "%d"), ip); 28 scanf (dgettext ("", "%ld"), ip); 29 scanf (dcgettext ("", "%d", 0), ip); 30 scanf (dcgettex [all...] |
H A D | ms_c99-scanf-3.c | 1 /* Test for scanf formats. Test that the C99 functions get their default 17 scanf ("%d", ip); 18 scanf ("%ld", ip); /* { dg-warning "format" "scanf" } */ 27 scanf (gettext ("%d"), ip); 28 scanf (gettext ("%ld"), ip); 29 scanf (dgettext ("", "%d"), ip); 30 scanf (dgettext ("", "%ld"), ip); 31 scanf (dcgettext ("", "%d", 0), ip); 32 scanf (dcgettex [all...] |
H A D | ms_no-exargs-2.c | 17 /* With scanf formats, gaps in the used arguments are allowed only if the 21 scanf ("%3$d%1$d", ip, ip, ip); 23 scanf ("%3$d%1$d", ip, ip, ip, i); 24 scanf ("%3$d%1$d", ip, i, ip); /* { dg-warning "before used" "unused $ scanf non-pointer operand" } */
|
H A D | no-exargs-2.c | 16 /* With scanf formats, gaps in the used arguments are allowed only if the 20 scanf ("%3$d%1$d", ip, ip, ip); 22 scanf ("%3$d%1$d", ip, ip, ip, i); 23 scanf ("%3$d%1$d", ip, i, ip); /* { dg-warning "before used" "unused $ scanf non-pointer operand" } */
|
H A D | xopen-1.c | 15 /* The conversion specifiers C and S, for both printf and scanf, 52 scanf ("%C", ls); 53 scanf ("%S", ls); 54 scanf ("%*C%*S"); 55 scanf ("%2C%3S", ls, ls); 56 scanf ("%hC", ls); /* { dg-warning "length" "bad %hC" } */ 57 scanf ("%hhC", ls); /* { dg-warning "length" "bad %hhC" } */ 58 scanf ("%lC", ls); /* { dg-warning "length" "bad %lC" } */ 59 scanf ("%llC", ls); /* { dg-warning "length" "bad %llC" } */ 60 scanf (" [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/g++.dg/ext/ |
H A D | attrib11.C | 11 extern int scanf (__const char *__restrict __format, ...) throw ();
|