Debian Codegraph @

gcc/testsuite/gm2/pim/run/pass/testimportconst.mod

raw
1 MODULE testimportconst ; (*!m2iso+gm2*)
2
3 FROM StrLib IMPORT StrEqual ;
4 FROM libc IMPORT printf ;
5 FROM constdef IMPORT StrConst ;
6 IMPORT constdef ;
7
8
9 PROCEDURE init ;
10 BEGIN
11 IF NOT StrEqual (StrConst, 'hello')
12 THEN
13 printf ("failed to import 'hello' from constdef\n");
14 HALT (1)
15 END ;
16 IF NOT StrEqual (constdef.StrConst, 'hello')
17 THEN
18 printf ("failed constdef.StrConst does not equal 'hello'\n");
19 HALT (2)
20 END
21 END init ;
22
23
24 BEGIN
25 init
26 END testimportconst.