Titan Core Initial Contribution
[deliverable/titan.core.git] / function_test / Semantic_Analyser / options / quitter3Q2S.ttcn
1 /******************************************************************************
2 * Copyright (c) 2000-2014 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 ******************************************************************************/
8 module quitter3Q2S { /* no "In TTCN-3 module" */
9 //
10 // A module with three errors. Quit after the second. Context 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; /* no error here */
24 }
25 }
26
This page took 0.031012 seconds and 5 git commands to generate.