blob: e1ed76a56fa0849c408c64204830a2f3aec4b287 [file] [log] [blame]
group declarations "Declarations"
case missing_variable_name
version 330
both ""
#version 330
${DECLARATIONS}
void main()
{
int;
${OUTPUT}
}
""
end
case comma_preceding_variable
version 330
both ""
#version 330
${DECLARATIONS}
void main()
{
int ,a;
${OUTPUT}
}
""
end
case comma_following_variable
version 330
expect compile_fail
both ""
#version 330
${DECLARATIONS}
void main()
{
int a,;
${OUTPUT}
}
""
end
case struct_missing_attribute_name
version 330
expect compile_fail
both ""
#version 330
${DECLARATIONS}
void main()
{
struct Data { int; };
${OUTPUT}
}
""
end
case struct_comma_preceding_attribute
version 330
expect compile_fail
both ""
#version 330
${DECLARATIONS}
void main()
{
struct Data { int ,a; };
${OUTPUT}
}
""
end
end # invalid_declarations