scc

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

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

 1/* Taken from plan9 kernel */
 2
 3typedef struct Clock0link Clock0link;
 4typedef struct Clock0link {
 5	int             (*clock)(void);
 6	Clock0link*     link;
 7};
 8
 9#if __STDC_VERSION__ >= 201112L
10typedef struct Clock0link Clock0link;
11#endif
12
13int
14f(void)
15{
16	return 0;
17}
18
19Clock0link cl0 = {
20	.clock = f
21};
22
23int
24main(void)
25{
26	return (*cl0.clock)();
27}