mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-22 21:17:14 +00:00
Handle branch fallthrough
This commit is contained in:
15
tests/PowerAnalyse/cond-fall.cpp
Normal file
15
tests/PowerAnalyse/cond-fall.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
int cond(int a)
|
||||
{
|
||||
int v = 2;
|
||||
if (a == 1)
|
||||
{
|
||||
v += 5;
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return cond(0);
|
||||
}
|
BIN
tests/PowerAnalyse/cond-fall.elf
Normal file
BIN
tests/PowerAnalyse/cond-fall.elf
Normal file
Binary file not shown.
Reference in New Issue
Block a user