static int a2;<br>extern int a2 = 10;<br>static int a3 = 10;<br><br>compiles to:<br><br>@a2 = internal global i32 10            ; <i32*> [#uses=0]<br>@a3 = internal global i32 10            ; <i32*> [#uses=0]<br>
<br>so it looks like it works :)<br><br><div><span class="gmail_quote">2008/1/23, Eli Friedman <<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Jan 22, 2008 2:51 PM, Csaba Hruska <<a href="mailto:csaba.hruska@gmail.com">csaba.hruska@gmail.com</a>> wrote:<br>> this is the final bugfix, i've tested with the test cases in the test<br>> directory, and this doesnt changed the result, so it doesnt break any other
<br>> stuff :)<br><br>Hmm, looks generally reasonable... how does it work with the following testcase?<br><br>static int a;<br>extern int a = 10;<br><br>(a should have internal linkage and be initialized to 10.)<br>-Eli
<br></blockquote></div><br>