Merge pull request #4553 from ethereum/pragma-tests

Add syntax tests for unknown / invalid pragma
This commit is contained in:
Alex Beregszaszi 2018-07-24 19:58:35 +01:00 committed by GitHub
commit ae0959ae12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"