File:  [CSRG BSD Unix] / 43BSD / contrib / icon / test / std08.icn
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

record array(a,b,c,d,e,f,g)

procedure dummy(u,v,x,y,z)
   suspend u | v
   return x
end

procedure main()
   write("\"x\" << \"x\" ----> ",image("x" << "x") | "none")
   write("\"x\" << \"X\" ----> ",image("x" << "X") | "none")
   write("\"X\" << \"x\" ----> ",image("X" << "x") | "none")
   write("\"xx\" <<= \"xx\" ----> ",image("xx" <<= "xx") | "none")
   write("\"xxx\" <<= \"xx\" ----> ",image("xxx" <<= "xx") | "none")
   write("\"xx\" <<= \"xxx\" ----> ",image("xx" <<= "xxx") | "none")
   write("\"x\" >>= \"x\" ----> ",image("x" >>= "x") | "none")
   write("\"x\" >>= \"xx\" ----> ",image("x" >>= "xx") | "none")
   write("\"xx\" >>= \"x\" ----> ",image("xx" >>= "x") | "none")
   write("\"x\" >> \"x\" ----> ",image("x" >> "x") | "none")
   write("\"x\" >> \"X\" ----> ",image("x" >> "X") | "none")
   write("\"X\" >> \"x\" ----> ",image("X" >> "x") | "none")
   write("\"x\" == \"x\" ----> ",image("x" == "x") | "none")
   write("\"x\" == \"X\" ----> ",image("x" == "X") | "none")
   write("\"X\" == \"x\" ----> ",image("X" == "x") | "none")
   write("\"x\" ~== \"x\" ----> ",image("x" ~== "x") | "none")
   write("\"x\" ~== \"X\" ----> ",image("x" ~== "X") | "none")
   write("\"X\" ~== \"x\" ----> ",image("X" ~== "x") | "none")
   write("[] ~== \"x\" ----> ",image([] ~== "x") | "none")
end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.