diff options
author | David Phillips <david@sighup.nz> | 2018-08-06 01:34:06 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-08-06 01:34:52 +1200 |
commit | 0bff14977a2e4196bf4cd06481b8d0a93a563816 (patch) | |
tree | aecca9a19b96eba27f06160af7ac0b0ee8bea53d | |
parent | e4e292fce970257a7ee09f547cb905794af1a8d4 (diff) | |
download | hence-0bff14977a2e4196bf4cd06481b8d0a93a563816.tar.xz |
Add failing test for lex-only error
-rw-r--r-- | hence.c | 2 | ||||
-rw-r--r-- | test/invalid-hence/foreign-01.hence | 2 | ||||
-rw-r--r-- | test/invalid-hence/foreign-01.hence.expected | 1 |
3 files changed, 4 insertions, 1 deletions
@@ -17,7 +17,7 @@ int main(int argc, char **argv) { // gate_init(); fd = fopen(argv[1], "r"); - + if (!fd) { perror("fopen"); return 1; diff --git a/test/invalid-hence/foreign-01.hence b/test/invalid-hence/foreign-01.hence new file mode 100644 index 0000000..264f6f4 --- /dev/null +++ b/test/invalid-hence/foreign-01.hence @@ -0,0 +1,2 @@ +`~ +# diff --git a/test/invalid-hence/foreign-01.hence.expected b/test/invalid-hence/foreign-01.hence.expected new file mode 100644 index 0000000..90cc467 --- /dev/null +++ b/test/invalid-hence/foreign-01.hence.expected @@ -0,0 +1 @@ +invalid-hence/foreign-01.hence at (1,1): Unexpected '`' |