diff options
-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 '`' |