Skip to content

Commit 244d711

Browse files
committed
Add tests
1 parent 4c1787d commit 244d711

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

integration_tests/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ RUN(NAME test_unary_op_04 LABELS cpython llvm c) # unary bitinvert
571571
RUN(NAME test_unary_op_05 LABELS cpython llvm c) # unsigned unary minus, plus
572572
RUN(NAME test_unary_op_06 LABELS cpython llvm c) # unsigned unary bitnot
573573
RUN(NAME test_unsigned_01 LABELS cpython llvm c) # unsigned bitshift left, right
574+
RUN(NAME test_unsigned_02 LABELS cpython llvm c)
574575
RUN(NAME test_bool_binop LABELS cpython llvm c)
575576
RUN(NAME test_issue_518 LABELS cpython llvm c NOFAST)
576577
RUN(NAME structs_01 LABELS cpython llvm c)

integration_tests/test_unsigned_02.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from lpython import u16, i32
2+
3+
# test issue 2170
4+
5+
i : i32
6+
u : u16 = u16(32768)
7+
x : i32
8+
9+
for i in range(i32(u)):
10+
x = i * 2

0 commit comments

Comments
 (0)