diff --git a/tests/ui/parser/pragma_unknown.sol b/tests/ui/parser/pragma_unknown.sol index 76a7e4d..741fbea 100644 --- a/tests/ui/parser/pragma_unknown.sol +++ b/tests/ui/parser/pragma_unknown.sol @@ -9,3 +9,5 @@ pragma amogus 69; //~^ ERROR: unknown pragma pragma amogus 69 diwqbn9ru3b2q945 390ru31290r 0qjr09wadm; //~^ ERROR: unknown pragma +pragma amogus 0.8.15; +//~^ ERROR: only `solidity` is supported as a version pragma \ No newline at end of file diff --git a/tests/ui/parser/pragma_unknown.stderr b/tests/ui/parser/pragma_unknown.stderr index ec2ff10..ccafa49 100644 --- a/tests/ui/parser/pragma_unknown.stderr +++ b/tests/ui/parser/pragma_unknown.stderr @@ -33,5 +33,12 @@ LL | pragma amogus 69 diwqbn9ru3b2q945 390ru31290r 0qjr09wadm; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | -error: aborting due to 5 previous errors +error: only `solidity` is supported as a version pragma + --> ROOT/tests/ui/parser/pragma_unknown.sol:LL:CC + | +LL | pragma amogus 0.8.15; + | ^^^^^^ + | + +error: aborting due to 6 previous errors