* Add a custom test runner script At the moment it supports only tests that output warnings or errors (test type = output_check). More types can be added in the future.
35 lines
486 B
Plaintext
35 lines
486 B
Plaintext
// TODO: Check that string literals are concatenated correctly
|
|
|
|
#include <console>
|
|
|
|
#define d1\
|
|
print("ok")
|
|
#define d2 \
|
|
print("ok")
|
|
|
|
#warning this is\
|
|
warning 1
|
|
#warning this is\
|
|
warning 2
|
|
#warning this is \
|
|
warning 3
|
|
#warning this is \
|
|
warning 4
|
|
|
|
// single-line comments can span \
|
|
//multiple lines if you really want it
|
|
// no they can't, only with more //s.
|
|
|
|
#pragma deprecated don't\
|
|
use \
|
|
this \
|
|
function\
|
|
please
|
|
f() {}
|
|
|
|
main() {
|
|
d1;
|
|
d2;
|
|
f();
|
|
}
|