cfad47cfa3/t3compiler/tads3/test/data/circref.t

4b825dc642cb6eb9a060e54bf8d69288fbee4904cfad47cfa334b206c65f22086bcc5d63e6f70944
1
#include <tads.h>
2
#include <vector.h>
3
4
main(args)
5
{
6
    local a, b;
7
8
    a = new Vector(1);
9
    b = new Vector(1);
10
    "empty: a == b? <<a == b ? 'yes' : 'no'>>\n";
11
12
    a.append(b);
13
    "a = [b], b = []: a == b ? <<a == b ? 'yes' : 'no'>>\n";
14
    
15
    b.append(a);
16
    a = a.toList();
17
    b = b.toList();
18
    "a = [b], b = [a]: a == b? <<a == b ? 'yes' : 'no'>>\n";
19
}