From 9a90e0c457cd0c0b02b547e24f8466b082d6a58b Mon Sep 17 00:00:00 2001 From: Kishan-Ved Date: Tue, 27 Feb 2024 18:33:36 +0530 Subject: [PATCH] integration test added --- integration_tests/CMakeLists.txt | 1 + integration_tests/intrinsics_03.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 integration_tests/intrinsics_03.py diff --git a/integration_tests/CMakeLists.txt b/integration_tests/CMakeLists.txt index 1177bb5266..19f8c7a014 100644 --- a/integration_tests/CMakeLists.txt +++ b/integration_tests/CMakeLists.txt @@ -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) diff --git a/integration_tests/intrinsics_03.py b/integration_tests/intrinsics_03.py new file mode 100644 index 0000000000..8d89909843 --- /dev/null +++ b/integration_tests/intrinsics_03.py @@ -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<