summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-22 10:28:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-11-22 18:58:19 +0100
commit2abcff25137c7c9af007554c97a4512319ec2e4d (patch)
tree9e724a6260bcde206b0822f6daf958bf769a6b27 /idlc
parent61c092497ebbc22f1ce92e185f9fb66353bb9172 (diff)
constant.tests idlc/unoidl diffs:
* byte only accepts singed literal values < 128 now Change-Id: If557b5212e349fe115948f72b5558fee338db659
Diffstat (limited to 'idlc')
-rw-r--r--idlc/test/parser/constant.tests14
1 files changed, 11 insertions, 3 deletions
diff --git a/idlc/test/parser/constant.tests b/idlc/test/parser/constant.tests
index 505a8c2b1588..49183d4d1c18 100644
--- a/idlc/test/parser/constant.tests
+++ b/idlc/test/parser/constant.tests
@@ -79,9 +79,9 @@ constants C {
const byte C1 = -128;
const byte C2 = -0200;
const byte C3 = -0x80;
- const byte C4 = 255;
- const byte C5 = 0377;
- const byte C6 = 0xFF;
+ const byte C4 = 127;
+ const byte C5 = 0177;
+ const byte C6 = 0x7F;
const short C7 = -32768;
const short C8 = -0100000;
const short C9 = -0x8000;
@@ -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":
constants C { const byte C1 = -129; };