glslang/Test/struct.error.frag

15 lines
135 B
GLSL
Raw Permalink Normal View History

#version 460
struct A {
float x;
};
A test() {
return A(1.0);
}
void main() {
test().z; // A.z does not exist, causes a crash
}