summaryrefslogtreecommitdiffhomepage
path: root/Examples/ExampleCPlusPlus.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/ExampleCPlusPlus.cxx')
-rw-r--r--Examples/ExampleCPlusPlus.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Examples/ExampleCPlusPlus.cxx b/Examples/ExampleCPlusPlus.cxx
index ebdf7c3..6012b52 100644
--- a/Examples/ExampleCPlusPlus.cxx
+++ b/Examples/ExampleCPlusPlus.cxx
@@ -1,14 +1,12 @@
int main(int argc, char const* argv[])
{
- int foo = 20;
- foo -= 1;
-
{
bool bar = false;
- bar = true;
+ bar = 1;
bool bar2 = bar;
+ bar2 = false;
}
- return foo;
+ return 0;
}