mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add syntax tests for unknown / invalid pragma
This commit is contained in:
parent
fc68d22ba4
commit
3e17438c41
3
test/libsolidity/syntaxTests/pragma/invalid_pragma.sol
Normal file
3
test/libsolidity/syntaxTests/pragma/invalid_pragma.sol
Normal file
@ -0,0 +1,3 @@
|
||||
pragma 0;
|
||||
// ----
|
||||
// SyntaxError: (0-9): Invalid pragma "0"
|
3
test/libsolidity/syntaxTests/pragma/unknown_pragma.sol
Normal file
3
test/libsolidity/syntaxTests/pragma/unknown_pragma.sol
Normal file
@ -0,0 +1,3 @@
|
||||
pragma thisdoesntexist;
|
||||
// ----
|
||||
// SyntaxError: (0-23): Unknown pragma "thisdoesntexist"
|
Loading…
Reference in New Issue
Block a user