Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / lineContinuation100.vert
1 #version 100\r
2 \r
3 // non-line continuation comment \\r
4 #error good error\r
5 \r
6 \r
7 \r
8 float f\\r
9 oo;  // same as 'float foo;'\r
10 \r
11 #error e2\r
12 \r
13 #define MAIN void main() \\r
14    {                     \\r
15 gl_Position = vec4(foo); \\r
16\r
17 \r
18 #error e3\r
19 \r
20 MAIN\r
21 \r
22 vec4 foo2(vec4 a)\r
23 {                                \r
24   vec4 b = a;       \\r
25   return b;                   \r
26 }\r
27 \r
28 // aoeuntheo unatehutna \ antaehnathe \r
29 // anteonuth $ natohe " '\r
30 // anteonuth     natohe\r
31 /*@*/\r
32 /* *@/*/\r
33 //@\r
34 \r
35 #define A int q1 = \ 1\r
36 #define B int q2 = \1\r
37 #define C int q3 = $ 1\r
38 #define D int q4 = @ 1\r
39 \r
40 const highp int a1 = \ 4;  // ERROR\r
41 const highp int a2 = @ 3;  // ERROR\r
42 const highp int a3 = $4;   // ERROR\r
43 const highp int a4 = a2\;  // ERROR\r
44 \r
45 A;\r
46 B;\r
47 C;\r
48 D;\r
49 \r
50 # \\r
51 \r
52 # \\r
53     error bad continuation\r
54 \r
55 #define QUOTE "ab\\r
56 cd"\r