Unlike idlc, unoidl doesn't support out-of-range byte consts
Change-Id: Ib1c98ea10a2d05e74a3aae9b2868a69c66efa543
This commit is contained in:
@@ -532,9 +532,6 @@ void Test::testConstants() {
|
|||||||
SAL_MIN_INT8, test::codemaker::cppumaker::Constants::byteMin);
|
SAL_MIN_INT8, test::codemaker::cppumaker::Constants::byteMin);
|
||||||
CPPUNIT_ASSERT_EQUAL(
|
CPPUNIT_ASSERT_EQUAL(
|
||||||
SAL_MAX_INT8, test::codemaker::cppumaker::Constants::byteMax);
|
SAL_MAX_INT8, test::codemaker::cppumaker::Constants::byteMax);
|
||||||
CPPUNIT_ASSERT_EQUAL(
|
|
||||||
static_cast< sal_Int8 >(-1),
|
|
||||||
test::codemaker::cppumaker::Constants::byteNeg);
|
|
||||||
CPPUNIT_ASSERT_EQUAL(
|
CPPUNIT_ASSERT_EQUAL(
|
||||||
SAL_MIN_INT16, test::codemaker::cppumaker::Constants::shortMin);
|
SAL_MIN_INT16, test::codemaker::cppumaker::Constants::shortMin);
|
||||||
CPPUNIT_ASSERT_EQUAL(
|
CPPUNIT_ASSERT_EQUAL(
|
||||||
|
@@ -690,7 +690,6 @@ exception TestException2: TestException1 {};
|
|||||||
constants Constants {
|
constants Constants {
|
||||||
const byte byteMin = -128;
|
const byte byteMin = -128;
|
||||||
const byte byteMax = 127;
|
const byte byteMax = 127;
|
||||||
const byte byteNeg = 255;
|
|
||||||
const short shortMin = -32768;
|
const short shortMin = -32768;
|
||||||
const short shortMax = 32767;
|
const short shortMax = 32767;
|
||||||
const unsigned short unsignedShortMin = 0;
|
const unsigned short unsignedShortMin = 0;
|
||||||
|
Reference in New Issue
Block a user