summaryrefslogtreecommitdiffhomepage
path: root/test/test_samples/test_struct.ncpp
blob: 5006a0172013d62937f7c31ce95c5e4e0c587f17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
impl foo
{
    foo()
    {
        return;
    }

    let noop()
    {
        return 0x0;
    }
};

let construct_foo()
{
    let io := new;
    io := foo();

    return io;
}

let main()
{
    let io := 0x0;
    io := construct_foo();
    
    let first_number := io->noop();
    let status := delete(io);

    return first_number;
}