summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint2/msg_006.ln
blob: 197326cf44d9a3043de35eca9e6c46314cf85038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# $NetBSD: msg_006.ln,v 1.3 2021/08/24 23:38:51 rillig Exp $
#
# Test data for message 6 of lint2:
#	%s, arg %d used inconsistently  	%s[%s]  ::  %s[%s]

# msg_006_define.c:2: double add(double a, double b) { return a + b; }
0 s msg_006_define.c
S msg_006_define.c
2 d 0.2 d r 3add F2 D D D

# msg_006_call.c:2: int add(int, int);
# msg_006_call.c:4: int main(void) { return add(2, 3); }
0 s msg_006_call.c
S msg_006_call.c
2 d 0.2 e 3add F2 I I I
4 c 0.4 p1 p2 u 3add f2 I I I
4 d 0.4 d r 4main F0 I