Skip to content

Commit 01e1216

Browse files
Register a test in CMakeLists
1 parent 77c8016 commit 01e1216

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,3 +444,4 @@ RUN(NAME global_syms_03_b LABELS cpython llvm c)
444444
RUN(NAME global_syms_03_c LABELS cpython llvm c)
445445
RUN(NAME global_syms_04 LABELS cpython llvm c wasm wasm_x64)
446446
RUN(NAME global_syms_05 LABELS cpython llvm c)
447+
RUN(NAME global_syms_06 LABELS cpython llvm c)

integration_tests/global_syms_06.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from lpython import i32
2+
3+
def test() -> i32:
4+
temp: i32 = 0
5+
return temp
6+
7+
x: i32 = test()
8+
i: i32 = 10
9+
j: i32 = i

0 commit comments

Comments
 (0)