ia64: drop __tls_get_addr from expected ld.so plt usage
[glibc.git] / stdio-common / bug21.c
blobca27272ba191321e94b68459e87265294ccda2cc
1 #include <stdio.h>
2 #include <libc-internal.h>
4 static int
5 do_test (void)
7 static const char buf[] = " ";
8 char *str;
10 /* GCC in C99 mode treats %a as the C99 format expecting float *,
11 but glibc with _GNU_SOURCE treats %as as the GNU allocation
12 extension, so resulting in "warning: format '%a' expects argument
13 of type 'float *', but argument 3 has type 'char **'". This
14 applies to the other %as, %aS and %a[] formats below as well. */
15 DIAG_PUSH_NEEDS_COMMENT;
16 DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wformat");
17 int r = sscanf (buf, "%as", &str);
18 DIAG_POP_NEEDS_COMMENT;
19 printf ("%d %p\n", r, str);
21 return r != -1 || str != NULL;
24 #define TEST_FUNCTION do_test ()
25 #include "../test-skeleton.c"