xref: /netbsd-src/tests/usr.bin/xlint/lint1/emit_lp64.c (revision b2baa50111d645353fa30b4deab0f79d93650c8c)
1 /*	$NetBSD: emit_lp64.c,v 1.2 2023/03/28 14:44:34 rillig Exp $	*/
2 # 3 "emit_lp64.c"
3 
4 /*
5  * Test the symbol information that lint1 writes to a .ln file.  Using this
6  * symbol information, lint2 later checks that the symbols are used
7  * consistently across different translation units.
8  *
9  * This test covers large integer types that are only supported on LP64
10  * platforms.
11  */
12 
13 // omit the option '-g' to avoid having the GCC builtins in the .ln file.
14 /* lint1-flags: -Sw -X 351 */
15 
16 /* lint1-only-if: lp64 */
17 
18 __int128_t int128(__int128_t);
19 __uint128_t uint128(__uint128_t);
20