Debian Codegraph @

tests/test_opaque_header.c

raw
1 /*
2 * Test that abpoa.h can be included without SIMD flags.
3 *
4 * This file is compiled with only -I include and NO -march=native
5 * or -msse2 flags. If abpoa.h still pulls in simd_instruction.h,
6 * this will fail to compile.
7 *
8 * Compile (test only, no link):
9 * gcc -c -Wall -Werror -I include tests/test_opaque_header.c -o /dev/null
10 */
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include "abpoa.h"
14
15 int check_header_is_clean(void) {
16 /* Verify we can declare abpoa_t pointers without SIMD knowledge */
17 abpoa_t *ab = NULL;
18 abpoa_para_t *abpt = NULL;
19 (void)ab;
20 (void)abpt;
21 return 0;
22 }