summaryrefslogtreecommitdiffhomepage
path: root/samples
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-09-07 00:56:22 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-09-07 00:56:22 +0200
commit16fdd52cf59cf10e2fa347f14103b647f08c62b1 (patch)
treeab0a454ff7cd32babea373e2830a4d10d055ccc4 /samples
parentf13cd06e819ac630dfa30446aa9fe4c1c8c83dc9 (diff)
feat: improve c++ codegen in CompilerKit frontend.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'samples')
-rw-r--r--samples/cxx/example.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/cxx/example.cc b/samples/cxx/example.cc
index 9ee2a30..e74acbb 100644
--- a/samples/cxx/example.cc
+++ b/samples/cxx/example.cc
@@ -2,13 +2,13 @@
#warning test macro warning #1
int bar() {
- int yyy = 100;
+ auto yyy = 17800;
return yyy;
}
int foo() {
- int arg1 = 0;
- return bar();
+ int arg1 = bar();
+ return arg1;
}
int main() {