1// Expect >= 8 errors (currently 12, due to double-reporting) 2 3// Correct declaration (used in some test functions) 4uniform shader s1; 5uniform shader s2; 6 7uniform float2 xy; 8 9// Incorrect shader declarations (they must be uniform) 10shader s3; 11in shader s4; 12 13// Various places that shaders should not be allowed: 14half4 local() { shader s; return s.eval(xy); } 15half4 parameter(shader s) { return s.eval(xy); } 16shader returned() { return s1; } 17half4 constructed() { return shader(s1).eval(xy); } 18half4 expression(bool b) { return (b ? s1 : s2).eval(xy); } 19half4 dangling_eval() { s1.eval; } 20