summaryrefslogtreecommitdiffhomepage
path: root/snippets/test_snippets/test_struct.nc
blob: 71a9492e04f4f39c681ea8aacd503c9c9b6c2a03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
extern exit;
extern malloc;

let construct_foo()
{
    let io := 0;
    io :=  malloc(4);

    return io;
}

let main()
{
    let io := 0x0;
    io := construct_foo();
    
    _ := exit(io);

    return first_number;
}