Skip to content

Commit

Permalink
integration test added
Browse files Browse the repository at this point in the history
  • Loading branch information
Kishan-Ved committed Feb 28, 2024
1 parent 3d37a9a commit 9a90e0c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ RUN(NAME callback_04 IMPORT_PATH .. LABELS cpython)
# Intrinsic Functions
RUN(NAME intrinsics_01 LABELS cpython llvm NOFAST) # any
RUN(NAME intrinsics_02 LABELS cpython llvm c) # floordiv
RUN(NAME intrinsics_03 LABELS llvm) # lshift

# lpython decorator
RUN(NAME lpython_decorator_01 LABELS cpython)
Expand Down
12 changes: 12 additions & 0 deletions integration_tests/intrinsics_03.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from lpython import i32

a : i32
b : i32

a = 5
b = 2
print(lshift(a,b))
assert(lshift(a,b) == a<<b)

print(lshift(5,2))
assert(lshift(5,2) == 5<<2)

0 comments on commit 9a90e0c

Please sign in to comment.