scc

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

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

 1char s0[] = "foo";
 2char s1[7] = "foo";
 3char s2[3] = "foo";
 4char s3[] = {"foo"};
 5char *p = "foo";
 6
 7int
 8cmp(char *s1, char *s2)
 9{
10	while (*s1 && *s1++ == *s2++)
11		;
12	return *s1;
13}
14
15int
16main()
17{
18	if (sizeof(s0) != 4 || cmp(s0, "foo"))
19		return 1;
20	if (cmp(s1, "foo"))
21		return 1;
22	if (s2[0] != 'f' || s2[1] != 'o')
23		return 1;
24	if (sizeof(s3) != 4 || cmp(s3, "foo"))
25		return 1;
26	return 0;
27}