aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/bug21.c
blob: d22b9c1a9717a1976abe049296e3da5a7865ff8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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"