2013-11-12 03:31:24 +00:00
|
|
|
#version 100
|
|
|
|
|
2013-12-06 21:45:15 +00:00
|
|
|
// non-line continuation comment \
|
|
|
|
#error good error
|
|
|
|
|
2013-11-12 03:31:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
float f\
|
2013-12-04 17:23:03 +00:00
|
|
|
oo; // same as 'float foo;'
|
2013-11-12 03:31:24 +00:00
|
|
|
|
|
|
|
#error e2
|
|
|
|
|
|
|
|
#define MAIN void main() \
|
2013-11-12 22:01:32 +00:00
|
|
|
{ \
|
2013-11-12 03:31:24 +00:00
|
|
|
gl_Position = vec4(foo); \
|
|
|
|
}
|
|
|
|
|
|
|
|
#error e3
|
|
|
|
|
|
|
|
MAIN
|
2013-11-12 22:01:32 +00:00
|
|
|
|
|
|
|
vec4 foo2(vec4 a)
|
|
|
|
{
|
|
|
|
vec4 b = a; \
|
|
|
|
return b;
|
|
|
|
}
|
2013-12-03 20:09:57 +00:00
|
|
|
|
|
|
|
// aoeuntheo unatehutna \ antaehnathe
|
|
|
|
// anteonuth $ natohe " '
|
|
|
|
// anteonuth natohe
|
|
|
|
/*@*/
|
|
|
|
/* *@/*/
|
|
|
|
//@
|
2013-12-16 23:58:15 +00:00
|
|
|
|
|
|
|
#define A int q1 = \ 1
|
|
|
|
#define B int q2 = \1
|
|
|
|
#define C int q3 = $ 1
|
|
|
|
#define D int q4 = @ 1
|
|
|
|
|
2015-04-30 03:22:41 +00:00
|
|
|
const highp int a1 = \ 4; // ERROR
|
|
|
|
const highp int a2 = @ 3; // ERROR
|
|
|
|
const highp int a3 = $4; // ERROR
|
|
|
|
const highp int a4 = a2\; // ERROR
|
2013-12-16 23:58:15 +00:00
|
|
|
|
|
|
|
A;
|
|
|
|
B;
|
|
|
|
C;
|
|
|
|
D;
|
|
|
|
|
|
|
|
# \
|
|
|
|
|
|
|
|
# \
|
2013-12-31 23:02:24 +00:00
|
|
|
error bad continuation
|
|
|
|
|
|
|
|
#define QUOTE "ab\
|
|
|
|
cd"
|