Kaydet (Commit) 2abcff25 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

constant.tests idlc/unoidl diffs:

* byte only accepts singed literal values < 128 now

Change-Id: If557b5212e349fe115948f72b5558fee338db659
üst 61c09249
...@@ -79,9 +79,9 @@ constants C { ...@@ -79,9 +79,9 @@ constants C {
const byte C1 = -128; const byte C1 = -128;
const byte C2 = -0200; const byte C2 = -0200;
const byte C3 = -0x80; const byte C3 = -0x80;
const byte C4 = 255; const byte C4 = 127;
const byte C5 = 0377; const byte C5 = 0177;
const byte C6 = 0xFF; const byte C6 = 0x7F;
const short C7 = -32768; const short C7 = -32768;
const short C8 = -0100000; const short C8 = -0100000;
const short C9 = -0x8000; const short C9 = -0x8000;
...@@ -118,6 +118,14 @@ constants C { ...@@ -118,6 +118,14 @@ constants C {
}; };
EXPECT NEW-FAILURE "constant.tests 8a":
constants C {
const byte C4 = 255;
const byte C5 = 0377;
const byte C6 = 0xFF;
};
EXPECT FAILURE "constant.tests 9": EXPECT FAILURE "constant.tests 9":
constants C { const byte C1 = -129; }; constants C { const byte C1 = -129; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment