Sync with 5.4.0
[deliverable/titan.core.git] / function_test / Semantic_Analyser / options / quitter3S.ttcn
CommitLineData
114d1c9a 1/******************************************************************************
3abe9331 2 * Copyright (c) 2000-2015 Ericsson Telecom AB
114d1c9a
EL
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 ******************************************************************************/
8module quitter3S { /* no "In TTCN-3 module" */
9//
10// A module with three errors, context messages suppressed
11//
12 type record R {
13 integer i,
14 charstring s
15 }
16
17 control {
18 var R v_r := { z := true } //^error: Reference to non-existent field `z' in record value for type// \
19 //^Valid fields: i,s$//
20
21 v_r := 42; //^error: Record value was expected for type//
22
23 v_r := v_r + 1; //^error: First operand of operation `\+' should be integer or float value$// \
24 //^error: The operands of operation *`\+' should be of same type$//
25 }
26}
27
This page took 0.032345 seconds and 5 git commands to generate.