scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1/*
 2PATTERN:
 30038-void.c:22: error: 'void' must be the only parameter
 40038-void.c:27: warning: 'a' defined but not used
 50038-void.c:28: error: 'void' must be the only parameter
 60038-void.c:33: warning: 'a' defined but not used
 70038-void.c:34: error: 'void' must be the only parameter
 80038-void.c:39: warning: 'b' defined but not used
 90038-void.c:39: warning: 'a' defined but not used
100038-void.c:49: error: too many arguments in function call
110038-void.c:50: error: too few arguments in function call
120038-void.c:52: error: too many arguments in function call
130038-void.c:53: error: too few arguments in function call
140038-void.c:54: error: too few arguments in function call
150038-void.c:56: error: too few arguments in function call
160038-void.c:58: error: too many arguments in function call
17too many errors
18.
19*/
20
21int
22f1(void, int a)
23{
24	return 0;
25}
26
27int
28f2(int a, void)
29{
30	return 0;
31}
32
33int
34f3(int a, void, int b)
35{
36	return 0;
37}
38
39int
40f4(void)
41{
42	return 0;
43}
44
45int
46main()
47{
48	f1(1);
49	f1(1, 2);
50	f1();
51	f2(1);
52	f2(1, 2);
53	f2();
54	f3(1);
55	f3(1, 2);
56	f3();
57	f4();
58	return f4(1);
59}