summaryrefslogtreecommitdiffhomepage
path: root/systemtest/mcc-execute.tests
diff options
context:
space:
mode:
Diffstat (limited to 'systemtest/mcc-execute.tests')
-rw-r--r--systemtest/mcc-execute.tests/exitcodes.exp3
-rw-r--r--systemtest/mcc-execute.tests/test-division.cpp1
-rw-r--r--systemtest/mcc-execute.tests/test-modulo.cpp1
-rw-r--r--systemtest/mcc-execute.tests/test-multiplication.cpp1
4 files changed, 6 insertions, 0 deletions
diff --git a/systemtest/mcc-execute.tests/exitcodes.exp b/systemtest/mcc-execute.tests/exitcodes.exp
index 48d19a1..0480be8 100644
--- a/systemtest/mcc-execute.tests/exitcodes.exp
+++ b/systemtest/mcc-execute.tests/exitcodes.exp
@@ -2,4 +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 "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-division.cpp b/systemtest/mcc-execute.tests/test-division.cpp
new file mode 100644
index 0000000..21fc59f
--- /dev/null
+++ b/systemtest/mcc-execute.tests/test-division.cpp
@@ -0,0 +1 @@
+int main() { return 6 / 3; }
diff --git a/systemtest/mcc-execute.tests/test-modulo.cpp b/systemtest/mcc-execute.tests/test-modulo.cpp
new file mode 100644
index 0000000..c20fe78
--- /dev/null
+++ b/systemtest/mcc-execute.tests/test-modulo.cpp
@@ -0,0 +1 @@
+int main() { return 7 % 3; }
diff --git a/systemtest/mcc-execute.tests/test-multiplication.cpp b/systemtest/mcc-execute.tests/test-multiplication.cpp
new file mode 100644
index 0000000..d510f96
--- /dev/null
+++ b/systemtest/mcc-execute.tests/test-multiplication.cpp
@@ -0,0 +1 @@
+int main() { return 2 * 3; }