github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/tests/dump/undeclared.sol (about) 1 pragma solidity ^0.5; 2 3 contract test { 4 event Bar(bytes32 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(hex"DEADCAFE", c); 27 28 return c; 29 } 30 }