Skip to content
Snippets Groups Projects
Commit 1b131b8c authored by Ahmed Abd El Mawgood's avatar Ahmed Abd El Mawgood
Browse files

Test off by one bug in vfscanf

parent d7d3e008
No related branches found
No related tags found
1 merge request!270Gcc regressions
......@@ -44,6 +44,7 @@ EXPECT_NAMES=\
stdio/printf_space_pad \
stdio/ungetc_multiple \
stdio/ungetc_ftell \
stdio/fscanf_offby1 \
stdlib/a64l \
stdlib/alloc \
stdlib/atof \
......
1234, 7, 32
//1234 a
#include <stdio.h>
int main() {
FILE *f = fopen("stdio/fscanf_offby1.c", "r");
int x;
fscanf(f, "//%d", &x);
printf("%d, %ld, %d\n", x, ftell(f), fgetc(f));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment