Searched refs:scanf (Results 1 - 25 of 102) sorted by relevance

12345

/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.dg/format/
H A Dext-8.c1 /* Test for scanf formats. %m extensions. */
12 scanf ("%ms", sp);
13 scanf ("%mS", lsp);
14 scanf ("%mls", lsp);
15 scanf ("%m[bcd]", sp);
16 scanf ("%ml[bcd]", lsp);
17 scanf ("%mc", sp);
18 scanf ("%mlc", lsp);
19 scanf ("%mC", lsp);
20 scanf ("
[all...]
H A Dext-7.c1 /* Test for scanf formats. %a and %m extensions. */
14 scanf ("%as", sp);
15 scanf ("%aS", lsp);
16 scanf ("%las", dp);
17 scanf ("%la", lsp); /* { dg-warning "but argument 2 has type" } */
18 scanf ("%las", lsp); /* { dg-warning "but argument 2 has type" } */
19 scanf ("%a[bcd]", sp);
20 scanf ("%la[bcd]", dp);
21 scanf ("%*as");
22 scanf ("
[all...]
H A Ddfp-scanf-1.c1 /* Test for scanf formats for Decimal Floating Point types. */
20 scanf ("%Hf", x);
21 scanf ("%HF", x);
22 scanf ("%He", x);
23 scanf ("%HE", x);
24 scanf ("%Hg", x);
25 scanf ("%HG", x);
27 scanf ("%Df", y);
28 scanf ("%DF", y);
29 scanf ("
[all...]
H A Dc90-scanf-5.c1 /* Test for scanf formats. Formats using extensions to the standard
14 scanf ("%ms", sp); /* { dg-warning "C" "%ms" } */
15 scanf ("%mS", lsp); /* { dg-warning "C" "%mS" } */
16 scanf ("%mls", lsp); /* { dg-warning "C" "%mls" } */
17 scanf ("%m[bcd]", sp); /* { dg-warning "C" "%m[]" } */
18 scanf ("%ml[bcd]", lsp); /* { dg-warning "C" "%ml[]" } */
H A Dc99-scanf-4.c1 /* Test for scanf formats. Formats using extensions to the standard
14 scanf ("%ms", sp); /* { dg-warning "C" "%ms" } */
15 scanf ("%mS", lsp); /* { dg-warning "C" "%mS" } */
16 scanf ("%mls", lsp); /* { dg-warning "C" "%mls" } */
17 scanf ("%m[bcd]", sp); /* { dg-warning "C" "%m[]" } */
18 scanf ("%ml[bcd]", lsp); /* { dg-warning "C" "%ml[]" } */
H A Dc99-scanf-2.c1 /* Test for scanf formats. Formats using extensions to the standard
16 scanf ("%qd", llp); /* { dg-warning "C" "%q length" } */
17 scanf ("%Ld", llp); /* { dg-warning "C" "%L length" } */
19 scanf ("%C", ls); /* { dg-warning "C" "scanf %C" } */
20 scanf ("%S", ls); /* { dg-warning "C" "scanf %S" } */
22 scanf ("%1$d", ip); /* { dg-warning "C" "scanf $ format" } */
23 /* glibc also supports flags ' and I on scanf format
[all...]
H A Dc90-scanf-3.c1 /* Test for scanf formats. Formats using extensions to the standard
16 scanf ("%as", sp); /* { dg-warning "C" "%as" } */
17 scanf ("%aS", lsp); /* { dg-warning "C" "%aS" } */
18 scanf ("%a[bcd]", sp); /* { dg-warning "C" "%a[]" } */
H A Dext-4.c1 /* Test for scanf formats. %a extensions. */
15 scanf ("%as", sp);
16 scanf ("%aS", lsp);
17 scanf ("%a[bcd]", sp);
H A Dext-2.c2 Test for scanf formats.
18 scanf ("%qd%qi%qo%qu%qx%qX%qn", qp, qp, uqp, uqp, uqp, uqp, qn);
19 scanf ("%qf", fp); /* { dg-warning "length" "bad use of %q" } */
20 scanf ("%qF", fp); /* { dg-warning "length" "bad use of %q" } */
21 scanf ("%qe", fp); /* { dg-warning "length" "bad use of %q" } */
22 scanf ("%qE", fp); /* { dg-warning "length" "bad use of %q" } */
23 scanf ("%qg", fp); /* { dg-warning "length" "bad use of %q" } */
24 scanf ("%qG", fp); /* { dg-warning "length" "bad use of %q" } */
25 scanf ("%qa", fp); /* { dg-warning "length" "bad use of %q" } */
26 scanf ("
[all...]
H A Dc90-scanf-2.c1 /* Test for scanf formats. Formats using C99 features should be rejected
14 /* Some tests already in c90-scanf-1.c. */
16 scanf ("%hhd", hhp); /* { dg-warning "length|C" "%hh in C90" } */
17 scanf ("%lld", llp); /* { dg-warning "length|C" "%ll in C90" } */
18 scanf ("%jd", jp); /* { dg-warning "length|C" "%j in C90" } */
19 scanf ("%zu", zp); /* { dg-warning "length|C" "%z in C90" } */
20 scanf ("%td", tp); /* { dg-warning "length|C" "%t in C90" } */
22 scanf ("%F", fp); /* { dg-warning "C" "%F in C90" } */
23 scanf ("%a", fp); /* { dg-warning "C" "%a in C90" } */
24 scanf ("
[all...]
H A Dms_c90-scanf-2.c1 /* Test for scanf formats. Formats using C99 features should be rejected
15 /* Some tests already in c90-scanf-1.c. */
17 scanf ("%hhd", hhp); /* { dg-warning "unknown|format" "%hh is unsupported" } */
18 scanf ("%I64d", llp); /* { dg-warning "length|C" "%I64 in C90" } */
19 scanf ("%jd", jp); /* { dg-warning "unknown|format" "%j is unsupported" } */
20 scanf ("%zu", zp); /* { dg-warning "unknown|format" "%z is unsupported" } */
21 scanf ("%td", tp); /* { dg-warning "unknown|format" "%t is unsupported" } */
23 scanf ("%F", fp); /* { dg-warning "unknown|format" "%F is unsupported" } */
24 scanf ("%a", fp); /* { dg-warning "unknown|format" "%a is unsupported" } */
25 scanf ("
[all...]
H A Dc90-scanf-1.c1 /* Test for scanf formats. Formats using C90 features, including cases
22 scanf ("%d", ip);
23 scanf ("%*d");
24 scanf ("%3d", ip);
25 scanf ("%hd", hp);
26 scanf ("%3ld", lp);
27 scanf ("%*3d");
28 scanf ("%d %ld", ip, lp);
30 scanf ("%%");
31 scanf ("
[all...]
H A Dms_c90-scanf-1.c1 /* Test for scanf formats. Formats using C90 features, including cases
23 scanf ("%d", ip);
24 scanf ("%*d");
25 scanf ("%3d", ip);
26 scanf ("%hd", hp);
27 scanf ("%3ld", lp);
28 scanf ("%*3d");
29 scanf ("%d %ld", ip, lp);
31 scanf ("%%");
32 scanf ("
[all...]
H A Dms_c90-scanf-5.c1 /* Test for scanf formats. Formats using extensions to the standard
15 scanf ("%ms", sp); /* { dg-warning "unknown|format" "%ms is unsupported" } */
16 scanf ("%mS", lsp); /* { dg-warning "unknown|format" "%mS is unsupported" } */
17 scanf ("%mls", lsp); /* { dg-warning "unknown|format" "%mls is unsupported" } */
18 scanf ("%m[bcd]", sp); /* { dg-warning "unknown|format" "%m[] is unsupported" } */
19 scanf ("%ml[bcd]", lsp); /* { dg-warning "unknown|format" "%ml[] is unsupported" } */
H A Dms_c99-scanf-4.c1 /* Test for scanf formats. Formats using extensions to the standard
15 scanf ("%ms", sp); /* { dg-warning "unknown|format" "%ms is unsupported" } */
16 scanf ("%mS", lsp); /* { dg-warning "unknown|format" "%mS is unsupported" } */
17 scanf ("%mls", lsp); /* { dg-warning "unknown|format" "%mls is unsupported" } */
18 scanf ("%m[bcd]", sp); /* { dg-warning "unknown|format" "%m[] is unsupported" } */
19 scanf ("%ml[bcd]", lsp); /* { dg-warning "unknown|format" "%ml[] is unsupported" } */
H A Dms_c99-scanf-2.c1 /* Test for scanf formats. Formats using extensions to the standard
17 scanf ("%qd", llp); /* { dg-warning "unknown|format" "%q is unsupported" } */
18 scanf ("%Ld", llp); /* { dg-warning "unknown|format" "%L is unsupported" } */
20 scanf ("%C", ls); /* { dg-warning "C" "scanf %C" } */
21 scanf ("%S", ls); /* { dg-warning "C" "scanf %S" } */
23 scanf ("%1$d", ip); /* { dg-warning "C" "scanf $ format" } */
24 /* glibc also supports flags ' and I on scanf format
[all...]
H A Dattr-5.c9 /* 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 Dc99-scanf-1.c1 /* 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 Dms_c90-scanf-3.c1 /* Test for scanf formats. Formats using extensions to the standard
17 scanf ("%as", sp); /* { dg-warning "flag" "%as is unsupported" } */
18 scanf ("%aS", lsp); /* { dg-warning "format|flag" "%aS is unsupported" } */
19 scanf ("%a[bcd]", sp); /* { dg-warning "flag" "%a[] is unsupported" } */
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.dg/format/
H A Dc99-scanf-2.c1 /* Test for scanf formats. Formats using extensions to the standard
16 scanf ("%qd", llp); /* { dg-warning "C" "%q length" } */
17 scanf ("%Ld", llp); /* { dg-warning "C" "%L length" } */
19 scanf ("%C", ls); /* { dg-warning "C" "scanf %C" } */
20 scanf ("%S", ls); /* { dg-warning "C" "scanf %S" } */
22 scanf ("%1$d", ip); /* { dg-warning "C" "scanf $ format" } */
23 /* glibc also supports flags ' and I on scanf format
[all...]
H A Dc90-scanf-3.c1 /* Test for scanf formats. Formats using extensions to the standard
16 scanf ("%as", sp); /* { dg-warning "C" "%as" } */
17 scanf ("%aS", lsp); /* { dg-warning "C" "%aS" } */
18 scanf ("%a[bcd]", sp); /* { dg-warning "C" "%a[]" } */
H A Dext-4.c1 /* Test for scanf formats. %a extensions. */
15 scanf ("%as", sp);
16 scanf ("%aS", lsp);
17 scanf ("%a[bcd]", sp);
H A Dext-2.c2 Test for scanf formats.
18 scanf ("%qd%qi%qo%qu%qx%qX%qn", qp, qp, uqp, uqp, uqp, uqp, qn);
19 scanf ("%qf", fp); /* { dg-warning "length" "bad use of %q" } */
20 scanf ("%qF", fp); /* { dg-warning "length" "bad use of %q" } */
21 scanf ("%qe", fp); /* { dg-warning "length" "bad use of %q" } */
22 scanf ("%qE", fp); /* { dg-warning "length" "bad use of %q" } */
23 scanf ("%qg", fp); /* { dg-warning "length" "bad use of %q" } */
24 scanf ("%qG", fp); /* { dg-warning "length" "bad use of %q" } */
25 scanf ("%qa", fp); /* { dg-warning "length" "bad use of %q" } */
26 scanf ("
[all...]
H A Dc90-scanf-2.c1 /* Test for scanf formats. Formats using C99 features should be rejected
14 /* Some tests already in c90-scanf-1.c. */
16 scanf ("%hhd", hhp); /* { dg-warning "length|C" "%hh in C90" } */
17 scanf ("%lld", llp); /* { dg-warning "length|C" "%ll in C90" } */
18 scanf ("%jd", jp); /* { dg-warning "length|C" "%j in C90" } */
19 scanf ("%zu", zp); /* { dg-warning "length|C" "%z in C90" } */
20 scanf ("%td", tp); /* { dg-warning "length|C" "%t in C90" } */
22 scanf ("%F", fp); /* { dg-warning "C" "%F in C90" } */
23 scanf ("%a", fp); /* { dg-warning "C" "%a in C90" } */
24 scanf ("
[all...]
H A Dc90-scanf-1.c1 /* Test for scanf formats. Formats using C90 features, including cases
22 scanf ("%d", ip);
23 scanf ("%*d");
24 scanf ("%3d", ip);
25 scanf ("%hd", hp);
26 scanf ("%3ld", lp);
27 scanf ("%*3d");
28 scanf ("%d %ld", ip, lp);
30 scanf ("%%");
31 scanf ("
[all...]

Completed in 114 milliseconds

12345