Files
qmic/tests/num_large.qmi
Alex Elder e61ff7276e parser: fix another test file
In "tests/num_large.qmi", the same name is used twice for constant
symbols, which results in a parse error.  Fix this test file bug.

Fixes: ad48050 ("parser: properly support 64-bit numbers")
Signed-off-by: Alex Elder <elder@linaro.org>
2021-10-08 17:05:42 -05:00

24 lines
447 B
Plaintext

package test;
# As a 32 bit signed number, this would be negative
const TEST_NUMBER = 0x87654321;
# This value requires more than 32 bits to represent
const TEST_NUMBER2 = 0x123456789;
struct qmi_result {
u16 result;
u16 error;
};
request test_request {
required u8 test_number = 0x12;
} = 0x80000000;
response test_response {
required qmi_result r = 2;
} = 020000000000;
indication test_indication {
optional u64 value = 0x99;
} = 0x7;