Debian Codegraph @

gcc/testsuite/gm2/pimlib/run/pass/testnan.mod

raw
1 MODULE testnan ;
2
3 FROM Builtins IMPORT isnan ;
4 FROM libc IMPORT printf, exit ;
5
6 VAR
7 x: REAL ;
8 BEGIN
9 x := 0.0 / 0.0 ;
10 IF isnan (x) = 1
11 THEN
12 printf ("success isnan working from module Builtins\n")
13 ELSE
14 printf ("failure isnan is not working from module Builtins\n") ;
15 exit (1)
16 END
17 END testnan.