summaryrefslogtreecommitdiffstats
path: root/tests/serialization/extern/module-a.slang
blob: 59ccf7bcd78b67d5c5116af3dff86571b8e5a49c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//TEST_IGNORE_FILE:

// module-a.slang

export struct Thing
{
    int a; 
    int b;
};

export Thing makeThing(int a, int b)
{
    Thing thing;
    thing.a = a;
    thing.b = b;
    return thing;
}

export int foo(Thing thing) 
{ 
    return thing.a + thing.b * 2; 
}