1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2015 Ericsson Telecom AB
3 // All rights reserved. This program and the accompanying materials
4 // are made available under the terms of the Eclipse Public License v1.0
5 // which accompanies this distribution, and is available at
6 // http://www.eclipse.org/legal/epl-v10.html
7 ///////////////////////////////////////////////////////////////////////////////
11 type record of integer RoI;
17 type record EmptyRec { }
23 function f_embeddedEmptyArray() {
24 var Rec r := { numz := { 1, 2 } };
27 // this condition used to crash the compiler during code generation (artf521346)
28 case ( { numz := { } } ) {
37 function f_emptyArray() {
38 var RoI a := { 1, 2 };
50 function f_emptyRecord() {
51 var EmptyRec er := { };
63 function f_embeddedEmptyRecord() {
64 var Rec2 r2 := { empty := { } };
67 case ( { empty := { } } ) {