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.
This commit is contained in:
parent
29d668206f
commit
69115760bd
1 changed files with 30 additions and 2 deletions
|
@ -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; };
|
||||
|
|
Loading…
Reference in a new issue