Add syntax tests for unknown / invalid pragma

This commit is contained in:
Alex Beregszaszi 2018-07-23 23:49:27 +01:00
parent fc68d22ba4
commit 3e17438c41
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,3 @@
pragma 0;
// ----
// SyntaxError: (0-9): Invalid pragma "0"

View File

@ -0,0 +1,3 @@
pragma thisdoesntexist;
// ----
// SyntaxError: (0-23): Unknown pragma "thisdoesntexist"