scc

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

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

 1/*
 2PATTERN:
 30020-storage.c:36: warning: 'par' defined but not used
 40020-storage.c:42: error: incorrect storage class for file-scope declaration
 50020-storage.c:45: error: bad storage class in function parameter
 60020-storage.c:46: error: invalid storage class for function 'func4'
 70020-storage.c:47: error: invalid type specification
 80020-storage.c:53: error: conflicting types for 'd'
 9.
10*/
11
12int a;
13static char b;
14extern int c;
15typedef unsigned e;
16
17int
18func1(void)
19{
20        auto h;
21        static char i;
22        register long j;
23        extern int k;
24        static unsigned long a;
25        return h+i+j+k+a;
26}
27
28int
29func2(register int par)
30{
31        int par;
32
33	return par;
34}
35
36static int
37func3(register int par)
38{
39	return par;
40}
41
42register short d;
43
44register int
45func4(static int par)
46{
47        static register f;
48
49	return f+par;
50}
51
52short d;
53char d;