/******************************************************************************
 * Copyright (c) 2000-2021 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:
 *   Balasko, Jeno
 *   Forstner, Matyas
 *   Szabados, Kristof
 *
 ******************************************************************************/
module Tcompoundif
{

type record comp {
  integer f1,
  integer f2
}

function func(comp p_comp) return boolean
{
  return true;
}

control
{
  if(func({1, 2})) {
    log("OK");
  }

  while(func({1, 2})) {
    log("OK");
  }

  do {
    log("OK");
  } while(func({1, 2}));

  for(var integer i:=0; func({1, i}); i:=i+1) {
    log("OK");
  }

  alt {
    [func({1, 2})] any timer.timeout {}
  }
}

}
