summaryrefslogtreecommitdiffstats
path: root/tests/serialization/extern/module-b.slang
blob: 20371f1565c88dee3341889d948e3cc2f4087560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//TEST_IGNORE_FILE:

// module-b.slang

// This looks like a definition (and it is) but with [__extern] it's definition will be replaced at link time with a defintion
[__extern] struct Thing {};
[__extern] int foo(Thing thing);

int doSomething(Thing a, Thing b)
{
    return foo(a) + foo(b);
}