Debian Codegraph @

gcc/testsuite/gm2/iso/run/pass/testclock.mod

raw
1 MODULE testclock ;
2
3 IMPORT SysClock, STextIO ;
4
5 BEGIN
6 IF SysClock.CanGetClock ()
7 THEN
8 STextIO.WriteString ("success we can get the clock") ;
9 STextIO.WriteLn
10 ELSE
11 STextIO.WriteString ("unable to get the clock") ;
12 STextIO.WriteLn ;
13 HALT (1)
14 END
15 END testclock.