blob: 32b1946824babebe0bfb7f7be6bbfe28009fe017 [file] [log] [blame]
John Kessenich69aa9c12013-11-12 03:31:24 +00001#version 100
2
John Kessenich64bcb102013-12-06 21:45:15 +00003// non-line continuation comment \
4#error good error
John Kessenich69aa9c12013-11-12 03:31:24 +00005
John Kessenich64bcb102013-12-06 21:45:15 +00006
John Kessenich69aa9c12013-11-12 03:31:24 +00007
8float f\
John Kesseniche1f0f5b2013-12-04 17:23:03 +00009oo; // same as 'float foo;'
John Kessenich69aa9c12013-11-12 03:31:24 +000010
11#error e2
12
13#define MAIN void main() \
John Kessenich029d7462013-11-12 22:01:32 +000014 { \
John Kessenich69aa9c12013-11-12 03:31:24 +000015gl_Position = vec4(foo); \
16}
17
18#error e3
19
20MAIN
John Kessenich029d7462013-11-12 22:01:32 +000021
22vec4 foo2(vec4 a)
23{
24 vec4 b = a; \
25 return b;
26}
John Kessenich4e734dd2013-12-03 20:09:57 +000027
28// aoeuntheo unatehutna \ antaehnathe
29// anteonuth $ natohe " '
30// anteonuth natohe
31/*@*/
32/* *@/*/
33//@
John Kessenichbd958192013-12-16 23:58:15 +000034
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
40int a1 = \ 4; // ERROR
41int a2 = @ 3; // ERROR
42int a3 = $4; // ERROR
43int a4 = a2\; // ERROR
44
45A;
46B;
47C;
48D;
49
50# \
51
52# \
John Kessenich70540752013-12-31 23:02:24 +000053 error bad continuation
54
55#define QUOTE "ab\
56cd"