xref: /netbsd-src/tests/usr.bin/xlint/lint2/output_sorted.ln (revision 3d28ebb2796b2c73852ac796829669121a9e27b3)
1# $NetBSD: output_sorted.ln,v 1.2 2022/01/15 17:33:42 rillig Exp $
2#
3# Test whether the output is sorted by symbol name.
4# Before main2.c 1.21 from 2021-08-28, the output was sorted by hashcode,
5# which looked random.  Since then, the output is sorted by symbol name.
6
70 s output_sorted.c
8S output_sorted.c
9
1010 c 0.10 d	12no_prototype		f2 I PcC V
1111 c 0.11 d	12no_prototype		f2 PcC D V
12
13# Function calls with different names and incompatible argument types.
14# The function names are sorted by their Gray code.
1510 c 0.10 d	8func0000		f2 I PcC V
1611 c 0.11 d	8func0000		f2 PcC D V
1710 c 0.10 d	8func1000		f2 I PcC V
1811 c 0.11 d	8func1000		f2 PcC D V
1910 c 0.10 d	8func3000		f2 I PcC V
2011 c 0.11 d	8func3000		f2 PcC D V
2110 c 0.10 d	8func2000		f2 I PcC V
2211 c 0.11 d	8func2000		f2 PcC D V
2310 c 0.10 d	8func6000		f2 I PcC V
2411 c 0.11 d	8func6000		f2 PcC D V
2510 c 0.10 d	8func7000		f2 I PcC V
2611 c 0.11 d	8func7000		f2 PcC D V
2710 c 0.10 d	8func5000		f2 I PcC V
2811 c 0.11 d	8func5000		f2 PcC D V
2910 c 0.10 d	8func4000		f2 I PcC V
3011 c 0.11 d	8func4000		f2 PcC D V
31