scc

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

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

 1int
 2foo(int x[100])
 3{
 4	int y[100];
 5	int *p;
 6	
 7	y[0] = 2000;
 8	
 9	if(x[0] != 1000)
10	{
11		return 1;
12	}
13	
14	p = x;
15	
16	if(p[0] != 1000)
17	{
18		return 2;
19	}
20	
21	p = y;
22	
23	if(p[0] != 2000)
24	{
25		return 3;
26	}
27	
28	if(sizeof(x) != sizeof(void*))
29	{
30		return 4;
31	}
32	
33	if(sizeof(y) <= sizeof(x))
34	{
35		return 5;
36	}
37	
38	return 0;
39}
40
41int
42main()
43{
44	int x[100];
45	x[0] = 1000;
46	
47	return foo(x);
48}