Skip to content

Commit

Permalink
Add testcase for enum at file level
Browse files Browse the repository at this point in the history
  • Loading branch information
hajduakos committed Jan 7, 2021
1 parent 943c00f commit 428104d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/solc-verify/basic/EnumInFile.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0;

enum Fruit { Apple, Banana, Strawberry }

contract C {
Fruit fruit;

/// @notice postcondition fruit == fr
function f(Fruit fr) public {
fruit = fr;
}
}
3 changes: 3 additions & 0 deletions test/solc-verify/basic/EnumInFile.sol.gold
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
C::f: OK
C::[implicit_constructor]: OK
No errors found.

0 comments on commit 428104d

Please sign in to comment.