Lines Matching refs:scanf

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 ("%he", fp); /* { dg-warning "length" "bad use of %h" } */
41 scanf ("%hE", fp); /* { dg-warning "length" "bad use of %h" } */
42 scanf ("%hf", fp); /* { dg-warning "length" "bad use of %h" } */
43 scanf ("%hg", fp); /* { dg-warning "length" "bad use of %h" } */
44 scanf ("%hG", fp); /* { dg-warning "length" "bad use of %h" } */
45 scanf ("%hs", hp);
46 scanf ("%h[ac]", s); /* { dg-warning "length" "bad use of %h" } */
47 scanf ("%hc", (short *)s);
48 scanf ("%hp", pp); /* { dg-warning "length" "bad use of %h" } */
49 scanf ("%hhd", hhp); /* { dg-warning "unknown|format" "%hh is unsupported" } */
50 scanf ("%ld%li%lo%lu%lx%lX%ln", lp, lp, ulp, ulp, ulp, ulp, ln);
51 scanf ("%le%lE%lf%lg%lG", dp, dp, dp, dp, dp);
52 scanf ("%lp", pp); /* { dg-warning "length" "bad use of %l" } */
53 scanf ("%ls", ls);
54 scanf ("%l[ac]", ls);
55 scanf ("%lc", ls);
56 scanf ("%jd", jp); /* { dg-warning "unknown|format" "%j not supported" } */
57 scanf ("%zd", zp); /* { dg-warning "unknown|format" "%z not supported" } */
58 scanf ("%td", tp); /* { dg-warning "unknown|format" "%t not supported" } */
59 scanf ("%Lf", llp); /* { dg-warning "unknown|format" "bad use of %L is not supported" } */
61 scanf ("%d%i%o%u%x%X%e%E%f%g%G%s%[abc]%c%p%n%%", ip, ip, uip, uip, uip,