diff options
Diffstat (limited to 'tests/exec/prepost2.cpp')
-rw-r--r-- | tests/exec/prepost2.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/exec/prepost2.cpp b/tests/exec/prepost2.cpp new file mode 100644 index 0000000..dcc0181 --- /dev/null +++ b/tests/exec/prepost2.cpp @@ -0,0 +1,11 @@ +#include <iostream> + +int main() { + int x = 41; + std::cout << "x = " << x << "\n"; + std::cout << "x = " << x++ << "\n"; + std::cout << "x = " << ++x << "\n"; + std::cout << "x = " << x-- << "\n"; + std::cout << "x = " << --x << "\n"; + std::cout << "x = " << x << "\n"; +} |