1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:17:35 +00:00

JSSpecCompiler: Add our first test :^)

This commit is contained in:
Dan Klishch 2023-09-30 12:13:13 -04:00 committed by Andrew Kaster
parent 107a3b44fa
commit 00928764e9
4 changed files with 138 additions and 1 deletions

View file

@ -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;
}