The test case tst-ldbl-argp checks that the conversion specifier '%Lf'
correctly prints long double values with the default long double format
for a platform. This patch reuses the test case for long double with
the same format as double (-mlong-double-64).
Tested for powerpc, powerpc64 and powerpc64le.
2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
+ * sysdeps/ieee754/ldbl-opt/Makefile
+ [subdir == argp] (tests-internal): Add tst-nldbl-argp.
+ [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
+ [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
+
+2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
+
[BZ #23983]
* argp/Makefile (headers): Add bits/argp-ldbl.h.
* argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
$(objpfx)test-nldbl-redirect: $(objpfx)libnldbl_nonshared.a
endif
+
+# Tests for argp.h functions (reusing the relevant tests from argp/)
+ifeq ($(subdir),argp)
+tests-internal += tst-nldbl-argp
+
+$(objpfx)tst-nldbl-argp.c: tst-ldbl-argp.c
+ cp $< $@
+
+CFLAGS-tst-nldbl-argp.c += -mlong-double-64
+endif