Skip to content

Commit bb5e69d

Browse files
committed
updated tests
1 parent 0f80aee commit bb5e69d

File tree

236 files changed

+5149
-27621
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+5149
-27621
lines changed

tests/reference/asr-array_01_decl-39cf894.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"infile_hash": "3dff59bab7475d254ce0470065c11e797e52a5b2a3d7546acc0e6705",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "asr-array_01_decl-39cf894.stdout",
9-
"stdout_hash": "05ca1977931143e33bcb81f91fdd4047b21b4d4f235997d0303f34a5",
10-
"stderr": null,
11-
"stderr_hash": null,
12-
"returncode": 0
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-array_01_decl-39cf894.stderr",
11+
"stderr_hash": "e8601dc2cb416982b1ac0e63664e4b2d3d6e5182ac491007916670a3",
12+
"returncode": 1
1313
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
Traceback (most recent call last):
2+
 File "$DIR/src/bin/lpython.cpp", line 2135
3+
return emit_asr(arg_file, lpython_pass_manager, runtime_library_dir,
4+
 File "$DIR/src/bin/lpython.cpp", line 216
5+
std::cerr << diagnostics.render(lm, compiler_options);
6+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 9069
7+
}
8+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 5043
9+
void visit_Expr(const AST::Expr_t &/*x*/) {
10+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 4334
11+
if (current_scope) {
12+
 File "$DIR/src/lpython/python_ast.h", line 1909
13+
void visit_stmt(const stmt_t &b) { visit_stmt_t(b, self()); }
14+
 File "$DIR/src/lpython/python_ast.h", line 1794
15+
case stmtType::Import: { v.visit_Import((const Import_t &)x); return; }
16+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 4826
17+
// to read the package/module file
18+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 251
19+
mod1 = compile_module_till_asr(al, symtab, mod1_name, rl_path, infile, loc, diagnostics,
20+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 150
21+
if (!r2.ok) {
22+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 9101
23+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 9033
24+
target_type = ASRUtils::TYPE(ASR::make_UnsignedInteger_t(al, x.base.base.loc, 8));
25+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 5129
26+
}
27+
 File "$DIR/src/lpython/python_ast.h", line 1909
28+
void visit_stmt(const stmt_t &b) { visit_stmt_t(b, self()); }
29+
 File "$DIR/src/lpython/python_ast.h", line 1776
30+
case stmtType::FunctionDef: { v.visit_FunctionDef((const FunctionDef_t &)x); return; }
31+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 5324
32+
dependencies.clear(al);
33+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 5295
34+
current_scope = f->m_symtab;
35+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 5083
36+
return unit;
37+
 File "$DIR/src/lpython/python_ast.h", line 1909
38+
void visit_stmt(const stmt_t &b) { visit_stmt_t(b, self()); }
39+
 File "$DIR/src/lpython/python_ast.h", line 1778
40+
case stmtType::ClassDef: { v.visit_ClassDef((const ClassDef_t &)x); return; }
41+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 7182
42+
diag.add(diag::Diagnostic(
43+
 File "$DIR/src/lpython/python_ast.h", line 1936
44+
void visit_expr(const expr_t &b) { visit_expr_t(b, self()); }
45+
 File "$DIR/src/lpython/python_ast.h", line 1810
46+
case exprType::NamedExpr: { v.visit_NamedExpr((const NamedExpr_t &)x); return; }
47+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 3760
48+
case (AST::operatorType::Mod) : { op_name = "_mod"; break; }
49+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 414
50+
ASR::Module_t *m = load_module(al, tu_symtab, module_name,
51+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 251
52+
mod1 = compile_module_till_asr(al, symtab, mod1_name, rl_path, infile, loc, diagnostics,
53+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 150
54+
if (!r2.ok) {
55+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 9101
56+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 9033
57+
target_type = ASRUtils::TYPE(ASR::make_UnsignedInteger_t(al, x.base.base.loc, 8));
58+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 5129
59+
}
60+
 File "$DIR/src/lpython/python_ast.h", line 1909
61+
void visit_stmt(const stmt_t &b) { visit_stmt_t(b, self()); }
62+
 File "$DIR/src/lpython/python_ast.h", line 1776
63+
case stmtType::FunctionDef: { v.visit_FunctionDef((const FunctionDef_t &)x); return; }
64+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 5324
65+
dependencies.clear(al);
66+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 5295
67+
current_scope = f->m_symtab;
68+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 5083
69+
return unit;
70+
 File "$DIR/src/lpython/python_ast.h", line 1909
71+
void visit_stmt(const stmt_t &b) { visit_stmt_t(b, self()); }
72+
 File "$DIR/src/lpython/python_ast.h", line 1782
73+
case stmtType::AugAssign: { v.visit_AugAssign((const AugAssign_t &)x); return; }
74+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 5391
75+
ASR::Module_t *mod = ASR::down_cast<ASR::Module_t>(mod_sym);
76+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 2966
77+
}
78+
 File "$DIR/src/lpython/semantics/python_ast_to_asr.cpp", line 2634
79+
}
80+
 Binary file "/usr/lib/system/libsystem_platform.dylib", local address: 0x180484183
81+
Segfault: Signal SIGSEGV (segmentation fault) received

0 commit comments

Comments
 (0)