static int a2;
extern int a2 = 10;
static int a3 = 10;

compiles to:

@a2 = internal global i32 10            ; <i32*> [#uses=0]
@a3 = internal global i32 10            ; <i32*> [#uses=0]

so it looks like it works :)

2008/1/23, Eli Friedman <[EMAIL PROTECTED]>:
>
> On Jan 22, 2008 2:51 PM, Csaba Hruska <[EMAIL PROTECTED]> wrote:
> > this is the final bugfix, i've tested with the test cases in the test
> > directory, and this doesnt changed the result, so it doesnt break any
> other
> > stuff :)
>
> Hmm, looks generally reasonable... how does it work with the following
> testcase?
>
> static int a;
> extern int a = 10;
>
> (a should have internal linkage and be initialized to 10.)
> -Eli
>
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Reply via email to