Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
70540758
Commit
70540758
authored
Dec 31, 2013
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: add a few more test cases.
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24635
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
a70031a6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
18 deletions
+28
-18
lineContinuation.vert.out
Test/baseResults/lineContinuation.vert.out
+1
-1
lineContinuation100.vert.out
Test/baseResults/lineContinuation100.vert.out
+2
-1
switch.frag.out
Test/baseResults/switch.frag.out
+16
-12
cppSimple.vert
Test/cppSimple.vert
+2
-2
lineContinuation.vert
Test/lineContinuation.vert
+3
-0
lineContinuation100.vert
Test/lineContinuation100.vert
+4
-2
No files found.
Test/baseResults/lineContinuation.vert.out
View file @
70540758
...
...
@@ -19,7 +19,7 @@ ERROR: 0:112: '#if' : unexpected tokens following directive
ERROR: 0:117: 'macro expansion' : end of line in macro substitution: FOOM
ERROR: 0:118: 'preprocessor evaluation' : can't evaluate expression
ERROR: 0:118: '#if' : unexpected tokens following directive
ERROR: 0:1
47
: '' : syntax error
ERROR: 0:1
50
: '' : syntax error
ERROR: 19 compilation errors. No code generated.
...
...
Test/baseResults/lineContinuation100.vert.out
View file @
70540758
...
...
@@ -19,7 +19,8 @@ ERROR: 0:48: '@' : unexpected token
ERROR: 0:50: 'line continuation' : not supported for this version or the enabled extensions
ERROR: 0:52: 'line continuation' : not supported for this version or the enabled extensions
ERROR: 0:53: '#error' : bad continuation
ERROR: 19 compilation errors. No code generated.
ERROR: 0:55: 'line continuation' : not supported for this version or the enabled extensions
ERROR: 20 compilation errors. No code generated.
ERROR: node is still EOpNull!
...
...
Test/baseResults/switch.frag.out
View file @
70540758
...
...
@@ -11,7 +11,10 @@ ERROR: 0:89: '' : break statement only allowed in switch and loops
ERROR: 0:99: 'case' : cannot be nested inside control flow
ERROR: 0:104: 'case' : cannot be nested inside control flow
ERROR: 0:108: 'case' : cannot be nested inside control flow
ERROR: 12 compilation errors. No code generated.
ERROR: 0:115: 'default' : cannot be nested inside control flow
ERROR: 0:119: 'case' : cannot appear outside switch statement
ERROR: 0:120: 'default' : cannot appear outside switch statement
ERROR: 15 compilation errors. No code generated.
ERROR: node is still EOpNull!
...
...
@@ -218,12 +221,6 @@ ERROR: node is still EOpNull!
0:97 case: with expression
0:97 Constant:
0:97 1 (const int)
0:99 case: with expression
0:99 Constant:
0:99 4 (const int)
0:104 case: with expression
0:104 Constant:
0:104 2 (const int)
0:? Sequence
0:? Sequence
0:100 Branch: Break
...
...
@@ -251,18 +248,25 @@ ERROR: node is still EOpNull!
0:107 Compare Less Than (bool)
0:107 'd' (uniform mediump int)
0:107 'c' (uniform mediump int)
0:107 true case
0:108 case: with expression
0:108 Constant:
0:108 3 (const int)
0:107 true case is null
0:109 Branch: Break
0:111 Branch: Break
0:112 default:
0:112 case: with expression
0:112 Constant:
0:112 4 (const int)
0:? Sequence
0:113 move second child to first child (highp float)
0:113 'f' (highp float)
0:113 tangent (highp float)
0:113 'x' (smooth in highp float)
0:114 Test condition and select (void)
0:114 Condition
0:114 Compare Less Than (bool)
0:114 'f' (highp float)
0:114 Constant:
0:114 0.000000
0:114 true case is null
0:116 Branch: Break
0:? Linker Objects
0:? 'c' (uniform mediump int)
0:? 'd' (uniform mediump int)
...
...
Test/cppSimple.vert
View file @
70540758
...
...
@@ -134,9 +134,9 @@ float twoPi = TWOPI;
"boo"
// ERROR
int
a
=
length
(
"aoenatuh"
);
// ERROR
#define QUOTE "abcd" // okay
'
int
'
;
// ERROR
#define SINGLE 'a' // okay
// ERROR: all the following are reserved
#define GL_
#define GL_Macro 1
...
...
Test/lineContinuation.vert
View file @
70540758
...
...
@@ -140,6 +140,9 @@ void foo203209409()
41
;
}
#define QUOTE "ab\
cd"
void
foo230920394
()
{
// syntax error
...
...
Test/lineContinuation100.vert
View file @
70540758
...
...
@@ -50,4 +50,7 @@ D;
# \
# \
error
bad
continuation
\ No newline at end of file
error
bad
continuation
#define QUOTE "ab\
cd
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment