<div class="gmail_quote">On Sat, Oct 8, 2011 at 1:02 AM, Nick Lewycky <span dir="ltr"><<a href="mailto:nicholas@mxc.ca">nicholas@mxc.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Chandler Carruth wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Fri, Oct 7, 2011 at 4:29 PM, Nick Lewycky <<a href="mailto:nicholas@mxc.ca" target="_blank">nicholas@mxc.ca</a><br></div><div class="im">
<mailto:<a href="mailto:nicholas@mxc.ca" target="_blank">nicholas@mxc.ca</a>>> wrote:<br>
<br>
    Author: nicholas<br>
    Date: Fri Oct  7 18:29:53 2011<br>
    New Revision: 141440<br>
<br>
    URL: <a href="http://llvm.org/viewvc/llvm-project?rev=141440&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=141440&view=rev</a><br>
    <<a href="http://llvm.org/viewvc/llvm-project?rev=141440&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=141440&view=rev</a>><br>
    Log:<br>
    Don't emit the symbol table entry for the .symtab_shndx section either.<br>
<br>
<br>
Test case?<br>
</div></blockquote>
<br>
The test case is guaranteed to exceed 65535 sections, at a bare minimum of one section per line. It is also wildly unlikely that this would regress, short of doing something drastic enough that the programmer would ignore/delete any tests too. Are you sure?</blockquote>
<div><br></div><div>But there are all sorts of other bugs that such a test case might catch: n^2 algorithms per-section, other overflow, silly amounts of memory allocation per-section.</div><div><br></div><div>Also, I suspect that you can write the test case in less than 64k lines by either making it a preprocessed assembly file or by use of fancy shell bits in the RUN line....</div>
</div>