From 28dc20ee517dbbf98bd741fc2dfa24c82281d754 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 12 May 2024 18:53:08 +0200 Subject: MHR-21: Lots of improvements and changes to the C++ compiler. Signed-off-by: Amlal El Mahrouss --- Examples/ExampleCPlusPlus.cxx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Examples/ExampleCPlusPlus.cxx') diff --git a/Examples/ExampleCPlusPlus.cxx b/Examples/ExampleCPlusPlus.cxx index 38bf0c5..b54786d 100644 --- a/Examples/ExampleCPlusPlus.cxx +++ b/Examples/ExampleCPlusPlus.cxx @@ -1,11 +1,14 @@ -int main(int argc, char const *argv[]) +int main(int argc, char const* argv[]) { - struct ExampleCPlusPlus - { - int example_data; - }* example; + int foo = 20; + foo -= 1; - example->example_data = 0; + { + bool bar = false; + bar = true; - return 0; + bool bar2 = bar; + } + + return foo; } -- cgit v1.2.3