xref: /netbsd-src/tests/usr.bin/xlint/lint1/emit_lp64.c (revision aef5eb5f59cdfe8314f1b5f78ac04eb144e44010)
1 /*	$NetBSD: emit_lp64.c,v 1.1 2021/08/05 06:34:43 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 */
15 
16 /* lint1-only-if: lp64 */
17 
18 __int128_t int128(__int128_t);
19 __uint128_t uint128(__uint128_t);
20