aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-07-25 03:18:34 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-07-25 18:01:41 +0800
commit49573bad46f7c108bd3a00ec785f7da6a0066530 (patch)
treece9738ccb8ab36adb4463a63bf831e23bf332455
parentfa68e0019f92a2327bd31288e75ce44f3c8daf68 (diff)
downloaddexon-solidity-49573bad46f7c108bd3a00ec785f7da6a0066530.tar.gz
dexon-solidity-49573bad46f7c108bd3a00ec785f7da6a0066530.tar.zst
dexon-solidity-49573bad46f7c108bd3a00ec785f7da6a0066530.zip
Add syntax test for illegal pragma key
-rw-r--r--test/libsolidity/syntaxTests/parsing/pragma_illegal.sol4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/pragma_illegal.sol b/test/libsolidity/syntaxTests/parsing/pragma_illegal.sol
new file mode 100644
index 00000000..3395f6be
--- /dev/null
+++ b/test/libsolidity/syntaxTests/parsing/pragma_illegal.sol
@@ -0,0 +1,4 @@
+pragma ``;
+// ----
+// ParserError: (7-8): Token incompatible with Solidity parser as part of pragma directive.
+// ParserError: (8-9): Token incompatible with Solidity parser as part of pragma directive.