xref: /netbsd-src/tests/usr.bin/xlint/lint2/msg_013.ln (revision 222dcfd4cffb5946e6bee0bc50fd61d462010e7b)
1# $NetBSD: msg_013.ln,v 1.2 2023/08/05 09:44:18 rillig Exp $
2#
3# Test data for message 13 of lint2:
4#	%s: malformed format string  	%s
5#
6
70 s local.c
8S local.c
9
10# void my_printf(const char *fmt) {}
114 d 0.4 v 1P 1d 9my_printf F1 PcC V
12
13# my_printf("%f", 0.0);
1411 c 0.11 s1"%f" i 9my_printf f2 PC D V
15# my_printf("%a", 0.0);
1612 c 0.12 s1"%a" i 9my_printf f2 PC D V
17# my_printf("%lf", 0.0L);
1813 c 0.13 s1"%lf" i 9my_printf f2 PC lD V
19