lineContinuation100.vert 805 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #version 100
  2. // non-line continuation comment \
  3. #error good error
  4. float f\
  5. oo; // same as 'float foo;'
  6. #error e2
  7. #define MAIN void main() \
  8. { \
  9. gl_Position = vec4(foo); \
  10. }
  11. #error e3
  12. MAIN
  13. vec4 foo2(vec4 a)
  14. {
  15. vec4 b = a; \
  16. return b;
  17. }
  18. // aoeuntheo unatehutna \ antaehnathe
  19. // anteonuth $ natohe " '
  20. // anteonuth natohe
  21. /*@*/
  22. /* *@/*/
  23. //@
  24. #define A int q1 = \ 1
  25. #define B int q2 = \1
  26. #define C int q3 = $ 1
  27. #define D int q4 = @ 1
  28. const highp int a1 = \ 4; // ERROR
  29. const highp int a2 = @ 3; // ERROR
  30. const highp int a3 = $4; // ERROR
  31. const highp int a4 = a2\; // ERROR
  32. A;
  33. B;
  34. C;
  35. D;
  36. # \
  37. # \
  38. error bad continuation
  39. #define QUOTE "ab\
  40. cd"