From d7b8b5c0b8751caf5b51622f2329b363ecabc267 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 28 Nov 2020 13:41:39 +0100 Subject: Complete: Shift Left and Shift Right --- systemtest/mcc-execute.tests/exitcodes.exp | 1 + systemtest/mcc-execute.tests/test-shift-right.cpp | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 systemtest/mcc-execute.tests/test-shift-right.cpp (limited to 'systemtest/mcc-execute.tests') diff --git a/systemtest/mcc-execute.tests/exitcodes.exp b/systemtest/mcc-execute.tests/exitcodes.exp index 1f84444..d4c68f6 100644 --- a/systemtest/mcc-execute.tests/exitcodes.exp +++ b/systemtest/mcc-execute.tests/exitcodes.exp @@ -10,4 +10,5 @@ runtest_exit_code "Parentheses Tree" "systemtest/mcc-execute.tests/test-parenthe runtest_exit_code "Parentheses Left" "systemtest/mcc-execute.tests/test-parentheses-left" 36 runtest_exit_code "Parentheses Right" "systemtest/mcc-execute.tests/test-parentheses-right" 36 runtest_exit_code "Shift Left" "systemtest/mcc-execute.tests/test-shift-left" 12 +runtest_exit_code "Shift Right" "systemtest/mcc-execute.tests/test-shift-right" 2 diff --git a/systemtest/mcc-execute.tests/test-shift-right.cpp b/systemtest/mcc-execute.tests/test-shift-right.cpp new file mode 100644 index 0000000..5974a22 --- /dev/null +++ b/systemtest/mcc-execute.tests/test-shift-right.cpp @@ -0,0 +1,3 @@ +int main() { + return 16 >> 3; +} -- cgit v1.2.3