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:
16
tools/gen10k.v
Normal file
16
tools/gen10k.v
Normal 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()} ')
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user