| git.druid.rocks | index | druid520 | nscc | test/ | t50_include_main.nsc |
test/t50_include_main.nsc
/* regression test: include "path.nsh" splices a shared prototype in,
* used from the calling file (this one) and the defining file
* (t50_include_impl.nsc) both -- exactly the pattern that surfaced
* the linkage-upgrade bug in jscope2 (a bare prototype followed later
* by the real `global` definition was staying 'local' forever). */
include "t50_include.nsh";
global i32 main(void) {
return sq(6) + 6;
}