Fix IA-32 strstr in multiarch configuration as well.
[glibc.git] / stdio-common / bug22.c
blob2228388b47a7a8f4d127d4219cf3d713680b0405
1 /* BZ #5424 */
2 #include <stdio.h>
4 #define N 2147483648
6 #define STRINGIFY(S) #S
7 #define MAKE_STR(S) STRINGIFY(S)
9 #define SN MAKE_STR(N)
11 static int
12 do_test (void)
14 int ret;
16 FILE *fp = fopen ("/dev/null", "w");
17 if (fp == NULL)
19 puts ("cannot open /dev/null");
20 return 1;
23 ret = fprintf (fp, "%" SN "d%" SN "d", 1, 1);
25 printf ("ret = %d\n", ret);
27 return ret != -1;
30 #define TIMEOUT 30
31 #define TEST_FUNCTION do_test ()
32 #include "../test-skeleton.c"