Added broken check for bool if cond. Also added some wonky if/else pretty printing for AST.
This commit is contained in:
9
test/parse/simple_else_if.golden
Normal file
9
test/parse/simple_else_if.golden
Normal file
@@ -0,0 +1,9 @@
|
||||
(program
|
||||
(fun vertex vs_main -> float4 (@position)
|
||||
[(:= pos float3 (@position))]
|
||||
(if (> pos.x 100)
|
||||
(return (float4 pos 1))
|
||||
(if (> pos.x 50)
|
||||
(return (float4 pos 1))
|
||||
(return (float4 1))))
|
||||
(return (float4 0))))
|
||||
Reference in New Issue
Block a user