From 8f1093f0e00f9b1df7ce343a879303fd56a95d08 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Tue, 29 Oct 2013 17:42:34 +0100 Subject: First commit. --- tests/exec/passing.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/exec/passing.cpp (limited to 'tests/exec/passing.cpp') diff --git a/tests/exec/passing.cpp b/tests/exec/passing.cpp new file mode 100644 index 0000000..6354fa5 --- /dev/null +++ b/tests/exec/passing.cpp @@ -0,0 +1,13 @@ +#include + +void incr(int &y) { + y = y+1; +} + +int main() { + int x = 5; + std::cout << "x = " << x << std::endl; + incr(x); + std::cout << "x = " << x << std::endl; +} + -- cgit v1.2.3