Commit 5902bb56 authored by Botond Baranyi's avatar Botond Baranyi

Added missing tests for issue #495

Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent 9c6156c8
/******************************************************************************
* 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:
* Baranyi, Botond
*
******************************************************************************/
module Issue495 //^In TTCN-3 module//
{
modulepar
{
integer tsp_cl_num := 10;
}
type component MTC_CT {};
testcase tc_Fatal_Error() runs on MTC_CT //^In testcase definition//
{
const integer cl_num0 := 10;
var integer Int0[cl_num0];
const integer cl_num := tsp_cl_num;
var integer Int[cl_num]; //^In variable definition// //^In array size// //Referenced constant value cannot be evaluated at compile-time//
var integer Int2[tsp_cl_num]; //^In variable definition// //^In array size// //Reference to an \(evaluable\) constant value was expected instead of module parameter//
}
}
##############################################################################
# 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:
# Baranyi, Botond
#
##############################################################################
include ../common.mk
#!/usr/bin/perl
# note this is called through "perl -w"
use strict;
my $self = $0;
$self =~ s!/t!!;
exec('make check --no-print-directory -s -C ' . $self);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment