annotate tests/cut.ur @ 2070:382911d72e63

Check realloc's return code to prevent segfault on out of memory condition (Part 3)
author Sergey Mironov <grrwlf@gmail.com>
date Tue, 02 Sep 2014 17:37:22 +0000
parents ae03d09043c1
children
rev   line source
adamc@149 1 val r = {A = 1, B = "Hi", C = 0.0}
adamc@149 2 val rA = r -- #A
adamc@493 3 val rB = r --- [A = _, C = _]
adamc@149 4
adamc@493 5 fun main () : transaction page = return <xml>
adamc@493 6 {cdata rA.B}, {cdata rB.B}
adamc@493 7 </xml>