☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gm2
/
switches
/
uninit-variable-checking
/
fail
/
testsmallrec.mod
☽
☼
gcc/testsuite/gm2/switches/uninit-variable-checking/fail/testsmallrec.mod
code
plain
raw
1
MODULE testsmallrec ;
2
3
4
TYPE
5
vec = RECORD
6
x, y: CARDINAL ;
7
END ;
8
9
PROCEDURE test ;
10
VAR
11
v: vec ;
12
BEGIN
13
(* v.x := 1 ; *)
14
v.y := 2 ;
15
IF v.x = 1 (* This line should be the cause of a warning. *)
16
THEN
17
END
18
END test ;
19
20
BEGIN
21
test
22
END testsmallrec.