gcc/testsuite/gcc.dg/format/ext-10.c
raw| 1 | /* Test for scanf format extensions using formats from C23. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-std=gnu23 -Wformat" } */ |
| 4 | |
| 5 | #include "format.h" |
| 6 | |
| 7 | void |
| 8 | foo (u_quad_t *uqp, unsigned long long int *ullp) |
| 9 | { |
| 10 | /* Deprecated length modifiers with %b. */ |
| 11 | scanf ("%qb", uqp); |
| 12 | scanf ("%Lb", ullp); |
| 13 | } |