John Kessenich | 69aa9c1 | 2013-11-12 03:31:24 +0000 | [diff] [blame] | 1 | #version 100 |
2 | |||||
John Kessenich | 64bcb10 | 2013-12-06 21:45:15 +0000 | [diff] [blame] | 3 | // non-line continuation comment \ |
4 | #error good error | ||||
John Kessenich | 69aa9c1 | 2013-11-12 03:31:24 +0000 | [diff] [blame] | 5 | |
John Kessenich | 64bcb10 | 2013-12-06 21:45:15 +0000 | [diff] [blame] | 6 | |
John Kessenich | 69aa9c1 | 2013-11-12 03:31:24 +0000 | [diff] [blame] | 7 | |
8 | float f\ | ||||
John Kessenich | e1f0f5b | 2013-12-04 17:23:03 +0000 | [diff] [blame] | 9 | oo; // same as 'float foo;' |
John Kessenich | 69aa9c1 | 2013-11-12 03:31:24 +0000 | [diff] [blame] | 10 | |
11 | #error e2 | ||||
12 | |||||
13 | #define MAIN void main() \ | ||||
John Kessenich | 029d746 | 2013-11-12 22:01:32 +0000 | [diff] [blame] | 14 | { \ |
John Kessenich | 69aa9c1 | 2013-11-12 03:31:24 +0000 | [diff] [blame] | 15 | gl_Position = vec4(foo); \ |
16 | } | ||||
17 | |||||
18 | #error e3 | ||||
19 | |||||
20 | MAIN | ||||
John Kessenich | 029d746 | 2013-11-12 22:01:32 +0000 | [diff] [blame] | 21 | |
22 | vec4 foo2(vec4 a) | ||||
23 | { | ||||
24 | vec4 b = a; \ | ||||
25 | return b; | ||||
26 | } | ||||
John Kessenich | 4e734dd | 2013-12-03 20:09:57 +0000 | [diff] [blame] | 27 | |
28 | // aoeuntheo unatehutna \ antaehnathe | ||||
29 | // anteonuth $ natohe " ' | ||||
30 | // anteonuth natohe | ||||
31 | /*@*/ | ||||
32 | /* *@/*/ | ||||
33 | //@ | ||||
John Kessenich | bd95819 | 2013-12-16 23:58:15 +0000 | [diff] [blame] | 34 | |
35 | #define A int q1 = \ 1 | ||||
36 | #define B int q2 = \1 | ||||
37 | #define C int q3 = $ 1 | ||||
38 | #define D int q4 = @ 1 | ||||
39 | |||||
John Kessenich | 968c8f8 | 2015-04-30 03:22:41 +0000 | [diff] [blame] | 40 | const highp int a1 = \ 4; // ERROR |
41 | const highp int a2 = @ 3; // ERROR | ||||
42 | const highp int a3 = $4; // ERROR | ||||
43 | const highp int a4 = a2\; // ERROR | ||||
John Kessenich | bd95819 | 2013-12-16 23:58:15 +0000 | [diff] [blame] | 44 | |
45 | A; | ||||
46 | B; | ||||
47 | C; | ||||
48 | D; | ||||
49 | |||||
50 | # \ | ||||
51 | |||||
52 | # \ | ||||
John Kessenich | 7054075 | 2013-12-31 23:02:24 +0000 | [diff] [blame] | 53 | error bad continuation |
54 | |||||
55 | #define QUOTE "ab\ | ||||
56 | cd" |