1 -- This is a rather exciting experiment in using the new call
2 -- makeStablePtr# and performIO. It doesn't do much but it took an
3 -- incredible effort to get it to do it.
9 -- module Main(main) where
11 main = makeStablePtr test >>= \ stablePtr ->
12 ((_casm_GC_ ``SaveAllStgRegs(); test1(%0); RestoreAllStgRegs();'' stablePtr)
23 (packString "The stable pointer has just been used to print this number %d\n") (f 100)