Commit 9c0f6218 authored by Laurent Le Brun's avatar Laurent Le Brun
Browse files

Update and fix test cases

parent d630322a
......@@ -11,8 +11,11 @@ float test_if()
bar = 0.3;
else
bar = 0.4;
return bar;
}
int k = 5;
float test_for()
{
int foo = 2;
......
void y(){}
void z(){}
void f() {
bool x = true;
if (x) {
y();
z();
......
void f() {
int x = 5;
int y = 7;
if (1) {
return 2;
} else {;}
......
......@@ -2,6 +2,6 @@ void main()
{
float n = float(0xff) / 1000.;
float o = float(-0XFF) / 1000.;
float p = n - o + 4 * 0x0;
float p = n - o + float(4 * 0x0);
gl_FragColor=vec4(.2,.4,n,0.);
}
void main()
{
var x = 0.5;
var i_y = 0.6*x;
var a = x * i_y;
float x = 0.5;
float i_y = 0.6*x;
float a = x * i_y;
}
\ No newline at end of file
......@@ -4,6 +4,6 @@ float oct = float(042) / 1000.;
float oct2 = float(-071) / 1000.;
int dec = 65535;
int dec2 = -65536;
float n = oct - oct2 + 4 * 0x0 + float(dec + dec2) / 20.;
float n = oct - oct2 + float(4 * 0x0) + float(dec + dec2) / 20.;
gl_FragColor=vec4(n,n,n,0.);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment