msg_013.ln revision 1.3 1 # $NetBSD: msg_013.ln,v 1.3 2025/02/20 19:04:00 rillig Exp $
2 #
3 # Test data for message 13 of lint2:
4 # %s is called with a malformed format string in %s
5 #
6
7 0 s local.c
8 S local.c
9
10 # void my_printf(const char *fmt) {}
11 4 d 0.4 v 1P 1d 9my_printf F1 PcC V
12
13 # my_printf("%f", 0.0);
14 11 c 0.11 s1"%f" i 9my_printf f2 PC D V
15 # my_printf("%a", 0.0);
16 12 c 0.12 s1"%a" i 9my_printf f2 PC D V
17 # my_printf("%lf", 0.0L);
18 13 c 0.13 s1"%lf" i 9my_printf f2 PC lD V
19