summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/980506-3.c
blob: a943e9ad62c2a35f0d475e34254821644d37b68b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
unsigned char lookup_table [257];

static int 
build_lookup (pattern)
     unsigned char *pattern;
{
  int m;

  m = strlen (pattern) - 1;
  
  memset (lookup_table, ++m, 257);
  return m;
}

int main(argc, argv)
     int argc;
     char **argv;
{
  if (build_lookup ("bind") != 4)
    abort ();
  else
    exit (0);
}