1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fn call; if expression; bool literals; 100k line program gen

fix

yay

lovely
This commit is contained in:
Alexander Medvednikov
2019-12-29 08:51:55 +01:00
parent 63b70ddb06
commit 2d2e0307b8
10 changed files with 171 additions and 38 deletions

16
tools/gen10k.v Normal file
View File

@@ -0,0 +1,16 @@
fn main() {
for i in 0..10000 {
println('
fn foo${i}() {
x := $i
mut a := x
a += 2
println(a)
a = 0
a = 1
}
')
}
println('fn main() {foo1()} ')
}