]> andersk Git - splint.git/blame - test/tests2.2a/toralf.c
Hacking Makefile to print a warning when test suite to run under /usr
[splint.git] / test / tests2.2a / toralf.c
CommitLineData
885824d3 1/** fixed, 8 july 1997 */
2
3/* test file for lclint */
4
5# include <stdlib.h>
6
7static void func1 (char *x)
8{
9 char *s = x;
10 int i1;
11 float f;
12
13 s += 5;
14 s += 'c'; /* bad types */
15 i1 += f; /* i1 used before def, f used before def */
16}
17
18static void func2()
19{
20 int i1;
21 int i2;
22
23 i1 = i2; /* i2 used before def */
24}
25
26int main ()
27{
28 func1 (NULL); /* null passed */
29 func2 ();
30 return (EXIT_SUCCESS);
31}
32
33
34
35
This page took 0.165578 seconds and 5 git commands to generate.