From 68e8f7208b6ab1fb2190c3aa2b6f0598d516c129 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 2 Feb 2025 03:11:37 -0800 Subject: [PATCH] tests: add test for issue #370 Signed-off-by: Ariadne Conill --- tests/requires.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/requires.sh b/tests/requires.sh index 1613a04..7a95a66 100755 --- a/tests/requires.sh +++ b/tests/requires.sh @@ -7,6 +7,7 @@ tests_init \ libs_cflags \ libs_static \ libs_static_pure \ + cflags_libs_private \ argv_parse2 \ static_cflags \ private_duplication \ @@ -162,3 +163,14 @@ orphaned_requires_private_body() -o ignore \ pkgconf --with-path="${selfdir}/lib1" --cflags --libs orphaned-requires-private } + +cflags_libs_private_body() +{ + atf_check \ + -o inline:"\n" \ + pkgconf --with-path="${selfdir}/lib1" --libs cflags-libs-private-a + + atf_check \ + -o inline:"-lc\n" \ + pkgconf --with-path="${selfdir}/lib1" --static --libs cflags-libs-private-a +}