summaryrefslogtreecommitdiffhomepage
path: root/systemtest/mcc-execute.tests
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-28 13:41:39 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-28 13:41:39 +0100
commitd7b8b5c0b8751caf5b51622f2329b363ecabc267 (patch)
tree9fb975cd770fe59c7e529ef755287abd95287497 /systemtest/mcc-execute.tests
parenta632cce380a853f5400111e19e1380982ed8a7fd (diff)
Complete: Shift Left and Shift Right
Diffstat (limited to 'systemtest/mcc-execute.tests')
-rw-r--r--systemtest/mcc-execute.tests/exitcodes.exp1
-rw-r--r--systemtest/mcc-execute.tests/test-shift-right.cpp3
2 files changed, 4 insertions, 0 deletions
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;
+}