New test.
From-SVN: r19599
This commit is contained in:
parent
47f3558cf0
commit
cc64424082
24
gcc/testsuite/gcc.c-torture/execute/980506-3.c
Normal file
24
gcc/testsuite/gcc.c-torture/execute/980506-3.c
Normal file
@ -0,0 +1,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user