init commit
This commit is contained in:
13
test/parse/pass_and_access_struct_fields_in_functions.golden
Normal file
13
test/parse/pass_and_access_struct_fields_in_functions.golden
Normal file
@@ -0,0 +1,13 @@
|
||||
(program
|
||||
(struct Foo
|
||||
[(:= some_data float)])
|
||||
|
||||
(fun foo -> float
|
||||
[(:= f Foo)]
|
||||
(return (* f.some_data 2)))
|
||||
|
||||
(fun vertex vs_main
|
||||
[]
|
||||
(:= f Foo)
|
||||
(= f.some_data 4)
|
||||
(:= d float (foo f))))
|
||||
Reference in New Issue
Block a user