glslang/Test/baseResults/noMain.vert.out
John Kessenich 906cc21816 Linker: Eliminate uncalled functions, because they can be ill-defined.
Fixes issue #610. Also provides a testing option to keep uncalled functions.
2016-12-09 19:22:20 -07:00

44 lines
1.1 KiB
Plaintext

noMain.vert
Shader version: 300
0:? Sequence
0:3 Function Definition: foo( (global void)
0:3 Function Parameters:
0:? Linker Objects
0:? 'gl_VertexID' (gl_VertexId highp int VertexId)
0:? 'gl_InstanceID' (gl_InstanceId highp int InstanceId)
mains.frag
ERROR: 0:7: 'main' : function already has a body
ERROR: 1 compilation errors. No code generated.
Shader version: 300
ERROR: node is still EOpNull!
0:3 Function Definition: main( (global void)
0:3 Function Parameters:
0:7 Function Definition: main( (global void)
0:7 Function Parameters:
0:? Linker Objects
Linked vertex stage:
ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point
Linked fragment stage:
Shader version: 300
0:? Sequence
0:? Linker Objects
0:? 'gl_VertexID' (gl_VertexId highp int VertexId)
0:? 'gl_InstanceID' (gl_InstanceId highp int InstanceId)
Shader version: 300
ERROR: node is still EOpNull!
0:3 Function Definition: main( (global void)
0:3 Function Parameters:
0:7 Function Definition: main( (global void)
0:7 Function Parameters:
0:? Linker Objects