glibc/stdio-common/bug21.c

17 lines
262 B
C

#include <stdio.h>
static int
do_test (void)
{
static const char buf[] = " ";
char *str;
int r = sscanf (buf, "%as", &str);
printf ("%d %p\n", r, str);
return r != -1 || str != NULL;
}
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"