xref: /aoo42x/main/idlc/test/parser/struct.tests (revision 57f04c0e)
1*57f04c0eSAndrew Rist#**************************************************************
2*57f04c0eSAndrew Rist#
3*57f04c0eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*57f04c0eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*57f04c0eSAndrew Rist#  distributed with this work for additional information
6*57f04c0eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*57f04c0eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*57f04c0eSAndrew Rist#  "License"); you may not use this file except in compliance
9*57f04c0eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*57f04c0eSAndrew Rist#
11*57f04c0eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*57f04c0eSAndrew Rist#
13*57f04c0eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*57f04c0eSAndrew Rist#  software distributed under the License is distributed on an
15*57f04c0eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*57f04c0eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*57f04c0eSAndrew Rist#  specific language governing permissions and limitations
18*57f04c0eSAndrew Rist#  under the License.
19*57f04c0eSAndrew Rist#
20*57f04c0eSAndrew Rist#**************************************************************
21cdf0e10cSrcweir
22cdf0e10cSrcweirEXPECT FAILURE "struct.tests 1":
23cdf0e10cSrcweirstruct S { void m; };
24cdf0e10cSrcweir
25cdf0e10cSrcweir
26cdf0e10cSrcweirEXPECT FAILURE "struct.tests 2":
27cdf0e10cSrcweirstruct S { sequence<void> m; };
28cdf0e10cSrcweir
29cdf0e10cSrcweir
30cdf0e10cSrcweirEXPECT FAILURE "struct.tests 3":
31cdf0e10cSrcweirexception E {};
32cdf0e10cSrcweirstruct S { E m; };
33cdf0e10cSrcweir
34cdf0e10cSrcweir
35cdf0e10cSrcweirEXPECT FAILURE "struct.tests 4":
36cdf0e10cSrcweirexception E {};
37cdf0e10cSrcweirstruct S { sequence<E> m; };
38cdf0e10cSrcweir
39cdf0e10cSrcweir
40cdf0e10cSrcweirEXPECT FAILURE "struct.tests 5":
41cdf0e10cSrcweirstruct S { S m; };
42cdf0e10cSrcweir
43cdf0e10cSrcweir
44cdf0e10cSrcweirEXPECT SUCCESS "struct.tests 6":
45cdf0e10cSrcweirstruct S { sequence<S> m; };
46cdf0e10cSrcweir
47cdf0e10cSrcweir
48cdf0e10cSrcweirEXPECT SUCCESS "struct.tests 7":
49cdf0e10cSrcweirstruct S { sequence<sequence<S> > m; };
50