Mercurial > urweb
annotate tests/strdupe.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 | 71bafe66dbe1 |
children |
rev | line source |
---|---|
adamc@63 | 1 val x = 0 |
adamc@64 | 2 val x = x |
adamc@63 | 3 |
adamc@63 | 4 type t = int |
adamc@64 | 5 type t = { A : t } |
adamc@63 | 6 |
adamc@63 | 7 signature S = sig end |
adamc@64 | 8 signature S = sig type t structure M : S end |
adamc@63 | 9 |
adamc@63 | 10 structure S = struct end |
adamc@64 | 11 structure S : S = struct type t = int structure M = S end |