github.com/Tri-stone/burrow@v0.25.0/tests/dump/undeclared.sol (about) 1 pragma solidity ^0.5.4; 2 3 contract test { 4 event Bar(string a, int b); 5 6 constructor() public { 7 emit Bar("constructor", 0); 8 } 9 10 int foobar; 11 12 function setFoobar(int n) public { 13 foobar = n; 14 } 15 16 function getFoobar() view public { 17 foobar; 18 } 19 20 function foo() public returns (int) { 21 int a = 3; 22 int b = a + 7; 23 24 int c = a * b; 25 26 emit Bar("result", c); 27 28 return c; 29 } 30 }