File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -669,6 +669,7 @@ RUN(NAME func_static_01 LABELS cpython llvm c wasm)
669
669
RUN(NAME func_static_02 LABELS cpython llvm c wasm)
670
670
RUN(NAME func_dep_03 LABELS cpython llvm c)
671
671
RUN(NAME func_dep_04 LABELS cpython llvm c)
672
+ RUN(NAME func_internal_def_01 LABELS cpython llvm c)
672
673
673
674
RUN(NAME float_01 LABELS cpython llvm c wasm wasm_x64)
674
675
RUN(NAME recursive_01 LABELS cpython llvm c wasm wasm_x64 wasm_x86)
Original file line number Diff line number Diff line change
1
+ def main ():
2
+ x : i32
3
+ x = (2 + 3 )* 5
4
+ print (x )
5
+
6
+ def bar ():
7
+ print ("bar" )
8
+
9
+ bar ()
10
+
11
+ main ()
Original file line number Diff line number Diff line change @@ -4302,6 +4302,11 @@ class SymbolTableVisitor : public CommonVisitor<SymbolTableVisitor> {
4302
4302
}
4303
4303
} else {
4304
4304
bool is_pure = false , is_module = false ;
4305
+
4306
+ for (size_t i = 0 ; i < x.n_body ; i++) {
4307
+ visit_stmt (*x.m_body [i]);
4308
+ }
4309
+
4305
4310
tmp = ASRUtils::make_Function_t_util (
4306
4311
al, x.base .base .loc ,
4307
4312
/* a_symtab */ current_scope,
You can’t perform that action at this time.
0 commit comments