Linker testing was sad at seeing an unresolved external symbol. For now don't do that: it's valid but we're not playing with multi-file linking yet, and the LLVM tests are used as hacky sanity tests for single-file linking (the GCC torture tests are much better for this purpose). Another solution would be to use '.extern' to make the intent explicit (don't simple-file link this, there's an unresolved symbol), some assemblers use '.extern' while others ignore it, so we wouldn't really be inventing anything new.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
As we discussed on IRC, this test was using external intentionally, because that's a useful thing to test, and the problem is that these tests are being use to generate tests for other tools in which external doesn't make sense. I'm ok with this change as a workaround for now, but please add a TODO comment reminding us to go back and revisit this.