From 58dd684c4e86944301959a140dbed9746df35779 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 5 Dec 2023 00:03:04 +0100 Subject: Second commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- testutil/is-section-half.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 testutil/is-section-half.c (limited to 'testutil/is-section-half.c') diff --git a/testutil/is-section-half.c b/testutil/is-section-half.c new file mode 100644 index 0000000..ee6ef50 --- /dev/null +++ b/testutil/is-section-half.c @@ -0,0 +1,14 @@ +/* See LICENSE file for copyright and license details. */ +#include "../libsyscalls.h" + +#include + + +int +main(int argc, char *argv[]) +{ + enum libsyscalls_datatype_section sec; + (void) argc; + sec = (enum libsyscalls_datatype_section)atoi(argv[1]); + return !LIBSYSCALLS_IS_SECTION_HALF(sec); +} -- cgit v1.2.3-70-g09d2