The spec validation rules require that all OpVariable instructions
in a function must be as the first instructions in the first block.
Change-Id: If054bd7882eaf5ffc00899fbdef9a9b71d544019
// Main function
"%main = OpFunction %void None %voidf\n"
"%label = OpLabel\n"
+ "%out_var = OpVariable %var_ptr Function ${variableInitializer}\n"
"%idval = OpLoad %uvec3 %id\n"
"%x = OpCompositeExtract %u32 %idval 0\n"
"%inloc = OpAccessChain %in_ptr %indata %zero %x\n"
"%outloc = OpAccessChain %in_ptr %outdata %zero %x\n"
- "%out_var = OpVariable %var_ptr Function ${variableInitializer}\n"
"%outval = OpLoad %in_type %out_var\n"
" OpStore %outloc %outval\n"
" OpReturn\n"