summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-04-12 08:37:12 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-04-12 08:37:12 +0200
commit09edd92af071cab2a88967a3db5f93a5fd568e1a (patch)
tree3db6792273c07ede557a333c47bba1e8b073a4d5 /tests
parent99fe704a5a8c4d049f1c4fef4151a64e0224e84b (diff)
LibCompiler, C++: use 'jmp' when returning from a function.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/example.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/example.cc b/tests/example.cc
index c73c712..718e46f 100644
--- a/tests/example.cc
+++ b/tests/example.cc
@@ -3,12 +3,13 @@
int bar()
{
- int yyy = 5050505055;
+ int yyy = 100;
return yyy;
}
int foo()
{
+ int arg1 = 0;
return bar();
}