• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1### Compilation failed:
2
3error: 3: discard statement is only permitted in fragment shaders
4void discard_stmt() { discard; }
5                      ^^^^^^^
6error: 5: do-while loops are not supported
7int do_loop(int x) { do { x++; } while(x < 1); return x; }
8                     ^^^^^^^^^^^^^^^^^^^^^^^^^
9error: 7: while loops are not supported
10int while_loop(int x) { while (x < 1) { x++; } return x; }
11                        ^^^^^^^^^^^^^^^^^^^^^^
123 errors
13