Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseth committed Sep 16, 2021
1 parent cedf683 commit a141589
Show file tree
Hide file tree
Showing 2 changed files with 502 additions and 91 deletions.
7 changes: 4 additions & 3 deletions test/cmdlineTests/standard_yul_source_locations/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"C":
{
"content": "//SPDX-License-Identifier: GPL-2.0\npragma solidity >=0.0;\npragma abicoder v2;\n\ncontract C\n{\n int constant constVar = 41;\n int immutable immutVar = 42;\n int public stateVar;\n\n constructor(int _init)\n {\n stateVar = _init;\n }\n\n function f() external pure returns (int)\n {\n return constVar + immutVar;\n }\n modifier m()\n {\n stateVar++;\n _;\n }\n function f2() m public returns (int)\n {\n return stateVar + this.f() + immutVar;\n }\n}\n"
"content": "//SPDX-License-Identifier: GPL-2.0\npragma solidity >=0.0;\npragma abicoder v2;\n\ncontract C\n{\n int public constant constVar = 41;\n int immutable immutVar = 42;\n int public stateVar;\n\n constructor(int _init)\n {\n stateVar = _init;\n }\n\n function f() external pure returns (int)\n {\n return constVar + immutVar;\n }\n modifier m()\n {\n stateVar++;\n _;\n }\n function f2() m public returns (int)\n {\n return stateVar + this.f() + immutVar;\n }\n}\n"
},
"D":
{
Expand All @@ -15,7 +15,8 @@
{
"outputSelection":
{
"*": { "*": ["ir"] }
}
"*": { "*": ["ir", "irOptimized"] }
},
"optimizer": { "enabled": true }
}
}
Loading

0 comments on commit a141589

Please sign in to comment.