1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22EXPECT SUCCESS "typedef.tests 1": 23struct Struct1 { long member1; }; 24typedef Struct1 T1; 25typedef T1 T2; 26struct Struct2: T2 { long member2; }; 27 28 29EXPECT FAILURE "typedef.tests 2": 30typedef long T1; 31typedef T1 T2; 32struct Struct: T2 { long member2; }; 33 34 35EXPECT SUCCESS "typedef.tests 3": 36interface Interface1 {}; 37typedef Interface1 T1; 38typedef T1 T2; 39interface Interface2: T2 {}; 40 41 42EXPECT FAILURE "typedef.tests 4": 43interface Interface1; 44typedef Interface1 T1; 45typedef T1 T2; 46interface Interface2: T2 {}; 47 48 49EXPECT FAILURE "typedef.tests 5": 50typedef long T1; 51typedef T1 T2; 52interface Interface: T2 {}; 53 54 55EXPECT FAILURE "typedef.tests 6": 56typedef void T; 57 58 59EXPECT FAILURE "typedef.tests 7": 60exception E {}; 61typedef E T; 62