summaryrefslogblamecommitdiffstats
path: root/testutil/is-section-quarter.c
blob: fd076f8f4cfd82aefd59538fdde1e5bdc946a6a0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                         
                  

                   



                                                                                         

   
                           
 








                                                                                       
 
/* See LICENSE file for copyright and license details. */
#include "../libsyscalls.h"

#include <stdio.h>
#include <stdlib.h>

#if defined(__clang__)
# pragma clang diagnostic ignored "-Wunsafe-buffer-usage" /* clang is just being silly */
#endif


int
main(int argc, char **argv)
{
	int sec;

	if (argc != 2) {
		fprintf(stderr, "usage error\n");
		return 3;
	}

	sec = atoi(argv[1]);
	return !LIBSYSCALLS_IS_SECTION_QUARTER((enum libsyscalls_datatype_section)sec);
}