summaryrefslogtreecommitdiffstats
path: root/testutil/is-section-half.c
diff options
context:
space:
mode:
Diffstat (limited to 'testutil/is-section-half.c')
-rw-r--r--testutil/is-section-half.c14
1 files changed, 14 insertions, 0 deletions
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 <stdlib.h>
+
+
+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);
+}