summaryrefslogtreecommitdiffstats
path: root/idlc/test
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-03-09 09:49:05 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-03-09 09:49:05 +0000
commit69115760bdbd4bfeef4e4ad8cb545be9a6a86da7 (patch)
tree1e3f8fba9798ac0bb438aa6bfd16a90c9c7fd27d /idlc/test
parentINTEGRATION: CWS jl31 (1.12.16); FILE MERGED (diff)
downloadcore-69115760bdbd4bfeef4e4ad8cb545be9a6a86da7.tar.gz
core-69115760bdbd4bfeef4e4ad8cb545be9a6a86da7.zip
INTEGRATION: CWS jl31 (1.4.18); FILE MERGED
2006/02/20 15:58:28 sb 1.4.18.1: #i62339# Forbid any unsigned types (i.e., not just UNSIGNED SHORT/LONG/HYPER, but also sequences of such) as type arguments of instantiated polymorphic struct types.
Diffstat (limited to 'idlc/test')
-rw-r--r--idlc/test/parser/polystruct.tests32
1 files changed, 30 insertions, 2 deletions
diff --git a/idlc/test/parser/polystruct.tests b/idlc/test/parser/polystruct.tests
index 968854729e4a..fd5c44e74e81 100644
--- a/idlc/test/parser/polystruct.tests
+++ b/idlc/test/parser/polystruct.tests
@@ -4,9 +4,9 @@
#
# $RCSfile: polystruct.tests,v $
#
-# $Revision: 1.4 $
+# $Revision: 1.5 $
#
-# last change: $Author: rt $ $Date: 2005-09-07 18:18:50 $
+# last change: $Author: rt $ $Date: 2006-03-09 10:49:05 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -236,3 +236,31 @@ module com { module sun { module star { module uno {
}; }; }; };
struct Struct<T> { long member; };
interface X { void f([in] Struct<unsigned hyper> p); };
+
+
+EXPECT FAILURE "polystruct.tests 43":
+struct Struct1<T> { long member; };
+struct Struct2 { Struct1<sequence<unsigned short> > member; };
+
+
+EXPECT SUCCESS "polystruct.tests 44":
+struct Struct1<T> { long member; };
+struct Struct2 { Struct1<sequence<char> > member; };
+
+
+EXPECT FAILURE "polystruct.tests 45":
+struct Struct1<T> { long member; };
+typedef unsigned short td;
+struct Struct2 { Struct1<td> member; };
+
+
+EXPECT FAILURE "polystruct.tests 46":
+struct Struct1<T> { long member; };
+typedef sequence<unsigned short> td;
+struct Struct2 { Struct1<td> member; };
+
+
+EXPECT FAILURE "polystruct.tests 47":
+struct Struct1<T> { long member; };
+typedef unsigned short td;
+struct Struct2 { Struct1<sequence<td> > member; };