You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.1 KiB

group invalid "Invalid constructions"
case constructor_c_style1
version 310 es
expect compile_fail
both ""
#version 310 es
precision mediump float;
${DECLARATIONS}
void main ()
{
float a[];
a = float[3] { 1.0, 2.0, 3.0 };
${POSITION_FRAG_COLOR} = vec4(1.0);
}
""
end
case constructor_c_style2
version 310 es
expect compile_fail
both ""
#version 310 es
precision mediump float;
${DECLARATIONS}
void main ()
{
float a[5] = { 1.0, 2.0, 3.0 };
${POSITION_FRAG_COLOR} = vec4(1.0);
}
""
end
case constructor_c_style3
version 310 es
expect compile_fail
both ""
#version 310 es
precision mediump float;
${DECLARATIONS}
void main ()
{
float a[] = float[3] { 1.0, 2.0, 3.0 };
${POSITION_FRAG_COLOR} = vec4(1.0);
}
""
end
case constructor_c_style4
version 310 es
expect compile_fail
both ""
#version 310 es
precision mediump float;
${DECLARATIONS}
void main ()
{
float a[3] = { 1.0, 2.0, 3.0 };
${POSITION_FRAG_COLOR} = vec4(1.0);
}
""
end
end # invalid