summary refs log tree commit diff
path: root/stdio-common/bug11.c
blob: 1f5739cb7d7c08f6b2cb8ccfabe536b30dae5de4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <string.h>

main ()
{
  int ret;
  char buf [1024] = "Ooops";

  ret = sscanf ("static char Term_bits[] = {", "static char %s = {", buf);
  printf ("ret: %d, name: %s\n", ret, buf);

  return strcmp (buf, "Term_bits[]") != 0 || ret != 1;
}