/******************************************************************************
 * Copyright (c) 2000-2025 Ericsson Telecom AB
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
 *
 * Contributors:
 *   Baranyi, Botond
 *
 ******************************************************************************/

// actual parameters (including default values) should not produce semantic errors
// if they are not completely initialized (bug 552232)
module Bug552232 {

type record Rec {
  integer    a,
  charstring b
}
 
const Rec c_rec := { 2 }

function f_test(in Rec pl_rec := { 2 })
{
  log(pl_rec);
}

function f() {
  var Rec vl_m := { 2 }

  f_test(vl_m);
  f_test(-);
  f_test(Rec: { 2 });
  f_test(c_rec);
}

}
