aboutsummaryrefslogtreecommitdiff
path: root/Test/baseResults/badChars.frag.out
diff options
context:
space:
mode:
authorJohn Kessenich <cepheus@frii.com>2015-07-27 09:37:55 -0600
committerJohn Kessenich <cepheus@frii.com>2015-07-27 09:37:55 -0600
commitc777fc2c4c14991af0d98c094f532405364701f2 (patch)
tree0b9c221e1e42bda2c15bbf31115190dbf33df849 /Test/baseResults/badChars.frag.out
parent91b977e17217eea47c2bd0568e52df9db0c3c29d (diff)
downloadglslang-c777fc2c4c14991af0d98c094f532405364701f2.tar.gz
Scanning: 1) rationalize end-of-input everywhere, 2) prevent infinite loop at end-of-input, 3) use positive chars.
Fixes issue #25. (char 255 aliased to -1 and missing tests for end of input). 1) All layers of input scanning now share a single EndOfInput value. This avoids translation of it across layers of encapsulation. 2) Some places looking for end of line were not stopping on EndOfInput. 3) Use of "char" for the input made char values > 127 be negative numbers. This allowed for aliasing of 255 to -1, etc. This is fixed by using unsigned char.
Diffstat (limited to 'Test/baseResults/badChars.frag.out')
-rw-r--r--Test/baseResults/badChars.frag.out26
1 files changed, 26 insertions, 0 deletions
diff --git a/Test/baseResults/badChars.frag.out b/Test/baseResults/badChars.frag.out
new file mode 100644
index 00000000..e3ab9455
--- /dev/null
+++ b/Test/baseResults/badChars.frag.out
@@ -0,0 +1,26 @@
+badChars.frag
+ERROR: 0:1: 'preprocessor evaluation' : bad expression
+ERROR: 0:1: '#if' : unexpected tokens following directive
+ERROR: 0:3: '#error' : A <bad token> B
+ERROR: 0:4: 'preprocessor evaluation' : bad expression
+ERROR: 0:4: '#if' : unexpected tokens following directive
+ERROR: 0:6: 'ÿ' : unexpected token
+ERROR: 0:7: '' : syntax error
+ERROR: 7 compilation errors. No code generated.
+
+
+Shader version: 100
+ERROR: node is still EOpNull!
+0:? Linker Objects
+0:? 'a' (global mediump int)
+
+
+Linked fragment stage:
+
+ERROR: Linking fragment stage: Missing entry point: Each stage requires one "void main()" entry point
+
+Shader version: 100
+ERROR: node is still EOpNull!
+0:? Linker Objects
+0:? 'a' (global mediump int)
+