diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-12 18:53:08 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-12 18:53:08 +0200 |
| commit | 28dc20ee517dbbf98bd741fc2dfa24c82281d754 (patch) | |
| tree | f49fca25c0e51632beb4a96eb031e9a4e346884f /Examples/ExampleCPlusPlus.cxx | |
| parent | 543b8c7287ac1248453a59cd3d759ce5ffeec4a3 (diff) | |
MHR-21: Lots of improvements and changes to the C++ compiler.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Examples/ExampleCPlusPlus.cxx')
| -rw-r--r-- | Examples/ExampleCPlusPlus.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
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; } |
