tejohnson added a comment. Actually, the description of the test is wrong - the test I added ensures that we still get this correct for llvm-lto2 (the new LTO API). Let me add one for llvm-lto which probably needs a -thinlto-action=internalize case. https://reviews.llvm.org/D25345