blob: 2d72884fcb9b58f7f5742065b2500a624a7fd139 [file] [log] [blame]
# -------------------------------------------------
# drawElements Quality Program OpenGL ES 3.2 Module
# -------------------------------------------------
#
# Copyright 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
group invalid "Invalid constructions"
case constructor_c_style1
version 320 es
expect compile_fail
both ""
#version 320 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 320 es
expect compile_fail
both ""
#version 320 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 320 es
expect compile_fail
both ""
#version 320 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 320 es
expect compile_fail
both ""
#version 320 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