1bf215546Sopenharmony_ci#version 130
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_civoid foo(float normalVar, out float outVar, inout float inoutVar);
4bf215546Sopenharmony_ci
5bf215546Sopenharmony_civoid main()
6bf215546Sopenharmony_ci{
7bf215546Sopenharmony_ci   int undefinedIndex;
8bf215546Sopenharmony_ci   int definedIndex = 2;
9bf215546Sopenharmony_ci   float willBeDefined[4];
10bf215546Sopenharmony_ci
11bf215546Sopenharmony_ci   foo(willBeDefined[undefinedIndex], willBeDefined[undefinedIndex], willBeDefined[undefinedIndex]);
12bf215546Sopenharmony_ci   foo(willBeDefined[definedIndex], willBeDefined[definedIndex], willBeDefined[definedIndex]);
13bf215546Sopenharmony_ci   willBeDefined[0] = 10.0;
14bf215546Sopenharmony_ci   foo(willBeDefined[undefinedIndex], willBeDefined[undefinedIndex], willBeDefined[undefinedIndex]);
15bf215546Sopenharmony_ci   foo(willBeDefined[definedIndex], willBeDefined[definedIndex], willBeDefined[definedIndex]);
16bf215546Sopenharmony_ci}
17bf215546Sopenharmony_ci
18