summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/float-literal.slang.expected
blob: 7e7e45f067adcbcbdf9b2d3cae6732de2603465f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
result code = 0
standard error = {
tests/diagnostics/float-literal.slang(7): warning 39999: float literal '5e+40' unrepresentable, converted to 'inf'
    a += 5e+40;
         ^~~~~
tests/diagnostics/float-literal.slang(9): warning 39999: '9e-50' is smaller than the smallest representable value for type float, converted to '0'
    a += 9e-50;
         ^~~~~
tests/diagnostics/float-literal.slang(19): warning 39999: float literal '5e+40' unrepresentable, converted to 'inf'
    b += -5e+40;
          ^~~~~
tests/diagnostics/float-literal.slang(20): warning 39999: '9e-50' is smaller than the smallest representable value for type float, converted to '0'
    b += -9e-50;
          ^~~~~
}
standard output = {
}