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/address1.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/exec/address1.cpp (limited to 'tests/exec/address1.cpp') diff --git a/tests/exec/address1.cpp b/tests/exec/address1.cpp new file mode 100644 index 0000000..fe70014 --- /dev/null +++ b/tests/exec/address1.cpp @@ -0,0 +1,11 @@ +#include + +int main() { + int x = 41; + std::cout << "x = " << x << "\n"; + int *y = &x; + *y = 42; + std::cout << "x = " << x << "\n"; + *y = *y + 1; + std::cout << "x = " << x << "\n"; +} -- cgit v1.2.3