aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/lexer_numbers_with_underscores_hex.sol
blob: 999a4634d79487a2f27ed4083756b39ca4dd2391 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
contract C {
  function f() public pure {
    uint x1 = 0x8765_4321;
    uint x2 = 0x765_4321;
    uint x3 = 0x65_4321;
    uint x4 = 0x5_4321;
    uint x5 = 0x123_1234_1234_1234;
    uint x6 = 0x123456_1234_1234;

    x1; x2; x3; x4; x5; x6;
  }
}
// ----