multiple.sol 330 B

12345678910111213141516
  1. // RUN: --target polkadot --emit cfg
  2. contract c {
  3. event f(bool);
  4. function test(bool a) public pure returns (int32) {
  5. int32 x;
  6. if (a) {
  7. x = 10 * 5;
  8. } else {
  9. x = 45 + 5;
  10. }
  11. // both reaching definitions should eval to 50
  12. // CHECK: return int32 50
  13. return x;
  14. }
  15. }