Skip to content

Commit 8635416

Browse files
committed
integration test added
1 parent 987b08b commit 8635416

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ RUN(NAME callback_04 IMPORT_PATH .. LABELS cpython)
816816
# Intrinsic Functions
817817
RUN(NAME intrinsics_01 LABELS cpython llvm NOFAST) # any
818818
RUN(NAME intrinsics_02 LABELS cpython llvm c) # floordiv
819+
RUN(NAME intrinsics_03 LABELS llvm) # lshift
819820

820821
# lpython decorator
821822
RUN(NAME lpython_decorator_01 LABELS cpython)

integration_tests/intrinsics_03.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from lpython import i32
2+
3+
a : i32
4+
b : i32
5+
6+
a = 5
7+
b = 2
8+
print(lshift(a,b))
9+
assert(lshift(a,b) == a<<b)
10+
11+
print(lshift(5,2))
12+
assert(lshift(5,2) == 5<<2)

0 commit comments

Comments
 (0)