mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 16:49:54 +00:00
JSSpecCompiler: Add our first test :^)
This commit is contained in:
parent
107a3b44fa
commit
00928764e9
Notes:
sideshowbarker
2024-07-16 21:51:02 +09:00
Author: https://github.com/DanShaders
Commit: 00928764e9
Pull-request: https://github.com/SerenityOS/serenity/pull/21612
Reviewed-by: https://github.com/ADKaster
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