mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
JSSpecCompiler: Add our first test :^)
This commit is contained in:
parent
107a3b44fa
commit
00928764e9
4 changed files with 138 additions and 1 deletions
|
@ -0,0 +1,18 @@
|
|||
auto f(auto cond1, auto cond2)
|
||||
{
|
||||
int a;
|
||||
int b;
|
||||
|
||||
if (cond1) {
|
||||
a = 1;
|
||||
if (cond2) {
|
||||
b = a;
|
||||
} else {
|
||||
b = 3;
|
||||
}
|
||||
} else {
|
||||
b = 4;
|
||||
}
|
||||
|
||||
return b;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue