Function definition example
This commit is contained in:
parent
d6d2b228ef
commit
8caadf9af1
7
tests/funcdefs.nct
Normal file
7
tests/funcdefs.nct
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/* Currently return isn't implemented (and no ret instructions are output either) */
|
||||||
|
/* Oh and arguments aren't supported yet either */
|
||||||
|
/* But functions work :) */
|
||||||
|
|
||||||
|
u0() foo: u0() {
|
||||||
|
u8 a = 5;
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user