summaryrefslogtreecommitdiffhomepage
path: root/systemtest/mcc-execute.tests
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-23 22:01:49 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-23 22:01:49 +0100
commit61db05a4127790da3219fccce87c34aa890d1d08 (patch)
treef88ca783621c9a44fdb1fe605d81a0f4e54eccce /systemtest/mcc-execute.tests
parentff69e8cab318101843cd8b49a0cb04df9763e10f (diff)
Add Subtract, generalized binary operations
Diffstat (limited to 'systemtest/mcc-execute.tests')
-rw-r--r--systemtest/mcc-execute.tests/exitcodes.exp1
-rw-r--r--systemtest/mcc-execute.tests/test-subtraction.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/systemtest/mcc-execute.tests/exitcodes.exp b/systemtest/mcc-execute.tests/exitcodes.exp
index dc4d377..fcd70ec 100644
--- a/systemtest/mcc-execute.tests/exitcodes.exp
+++ b/systemtest/mcc-execute.tests/exitcodes.exp
@@ -2,6 +2,7 @@
runtest_exit_code "Return 1" "systemtest/mcc-execute.tests/test-return-1" 1
runtest_exit_code "Addition" "systemtest/mcc-execute.tests/test-addition" 3
+runtest_exit_code "Subtraction" "systemtest/mcc-execute.tests/test-subtraction" 4
runtest_exit_code "Multiplication" "systemtest/mcc-execute.tests/test-multiplication" 6
runtest_exit_code "Division" "systemtest/mcc-execute.tests/test-division" 2
runtest_exit_code "Modulo" "systemtest/mcc-execute.tests/test-modulo" 1
diff --git a/systemtest/mcc-execute.tests/test-subtraction.cpp b/systemtest/mcc-execute.tests/test-subtraction.cpp
new file mode 100644
index 0000000..6980d76
--- /dev/null
+++ b/systemtest/mcc-execute.tests/test-subtraction.cpp
@@ -0,0 +1 @@
+int main() { return 9-5; }