]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - stdio-common/tst-sprintf2.c
vfprintf: Fix memory with large width and precision [BZ #19931]
[thirdparty/glibc.git] / stdio-common / tst-sprintf2.c
index debb68e21f1d05acf53f1d629dcf12d47361739a..0ddf15ba3378a54b5ac37235f42693e6c618d6a7 100644 (file)
@@ -3,11 +3,13 @@
 #include <stdio.h>
 #include <string.h>
 
-int
-main (void)
+static int
+do_test (void)
 {
+#if LDBL_MANT_DIG >= 106
   volatile union { long double l; long long x[2]; } u, v;
   char buf[64];
+#endif
   int result = 0;
 
 #if LDBL_MANT_DIG == 106 || LDBL_MANT_DIG == 113
@@ -80,3 +82,6 @@ main (void)
 #endif
   return result;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"