diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-01-18 12:35:26 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-01-18 12:35:26 +0000 |
commit | 874cb54b64f0471d5d94c4fd24b6dffd6345b64a (patch) | |
tree | 5cabf6865e293459bec8c099be4c8d177d665607 /idlc/test | |
parent | 4b0bf7339b60f88a6dba4cf013ff7a8086a5cfcc (diff) |
INTEGRATION: CWS sb28 (1.2.22); FILE MERGED
2005/01/03 16:38:01 sb 1.2.22.1: #i28722# Removed support for char and string constants.
Diffstat (limited to 'idlc/test')
-rw-r--r-- | idlc/test/parser/constant.tests | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/idlc/test/parser/constant.tests b/idlc/test/parser/constant.tests index d14c6a825ea1..2c69f696ce9a 100644 --- a/idlc/test/parser/constant.tests +++ b/idlc/test/parser/constant.tests @@ -2,9 +2,9 @@ # # $RCSfile: constant.tests,v $ # -# $Revision: 1.2 $ +# $Revision: 1.3 $ # -# last change: $Author: obo $ $Date: 2004-06-03 15:11:38 $ +# last change: $Author: kz $ $Date: 2005-01-18 13:35:26 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -71,7 +71,6 @@ constants C { const unsigned hyper C8 = 0; const float C9 = 0.0; const double C10 = 0.0; - const char C11 = 'A'; }; @@ -87,21 +86,32 @@ module m { const unsigned hyper C8 = 0; const float C9 = 0.0; const double C10 = 0.0; - const char C11 = 'A'; }; EXPECT FAILURE "constant.tests 3": constants C { - const string C1 = ""; + const char C1 = 'A'; }; EXPECT FAILURE "constant.tests 4": module m { + const char C1 = 'A'; +}; + + +EXPECT FAILURE "constant.tests 5": +constants C { + const string C1 = ""; +}; + + +EXPECT FAILURE "constant.tests 6": +module m { const string C1 = ""; }; -EXPECT SUCCESS "constant.tests 5": +EXPECT SUCCESS "constant.tests 7": constants C {}; |