Update.
[glibc.git] / stdio-common / scanf11.c
blob50ef26aded017bd623be2a0cc637c3783b019079
1 /* This test comes from ISO C Corrigendum 1. */
2 #include <stdio.h>
4 int
5 main (int argc, char *argv[])
7 int d1, n1, n2, i;
8 #define NOISE 1234567
9 int d2 = NOISE;
11 i = sscanf ("123", "%d%n%n%d", &d1, &n1, &n2, &d2);
13 return i != 3 || d1 != 123 || n1 != 3 || n2 != 3 || d2 != NOISE;