Commit d806a6e4 authored by Laurent Le Brun's avatar Laurent Le Brun
Browse files

Apply renaming in array size

Rename both 'size' in "float b[size] = float[size]();"
parent 845d76cf
......@@ -191,7 +191,8 @@ let renDecl isTopLevel env (ty:Type, vars) : Env * Decl =
newId env decl.name
let init = Option.map (renExpr env) decl.init
env, {decl with name=newName; init=init}
let size = Option.map (renExpr env) decl.size
env, {decl with name=newName; size=size; init=init}
let env, res = renList env aux vars
env, (ty, res)
......
#version 120
float a[3+2] = float[5](3.4, 4.2, 5.0, 5.2, 1.1);
const int size = 5;
float b[size] = float[size](3.4, 4.2, 5.0, 5.2, 1.1);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment