We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 934fb91 commit efef346Copy full SHA for efef346
2 files changed
tests/unittests/resources/CompilerSuite/ir/args_attr.ark
@@ -0,0 +1,6 @@
1
+(let foo (fun ((mut a) (ref b)) {
2
+ (set a (len b))
3
+ a }))
4
+
5
+(let data [1 2 3])
6
+(print (foo 1 data))
tests/unittests/resources/CompilerSuite/ir/args_attr.expected
@@ -0,0 +1,29 @@
+page_0
+ LOAD_CONST 0
+ STORE 0
+ LOAD_CONST 1
+ LOAD_CONST 2
+ LOAD_CONST 3
7
+ LIST 3
8
+ STORE 3
9
+ PUSH_RETURN_ADDRESS L0
10
+ PUSH_RETURN_ADDRESS L1
11
+ LOAD_SYMBOL_BY_INDEX 0
12
13
+ LOAD_SYMBOL_BY_INDEX 1
14
+ CALL 2
15
+.L1:
16
+ BUILTIN 9
17
+ CALL 1
18
+.L0:
19
+ HALT 0
20
21
+page_1
22
+ STORE 1
23
+ STORE_REF 2
24
25
+ LEN 0
26
+ SET_VAL 1
27
28
+ RET 0
29
0 commit comments