[patch] new exec-charset testcase

Eric Christopher echristo@redhat.com
Mon Apr 19 23:53:00 GMT 2004


On Mon, 2004-04-19 at 16:48, Zack Weinberg wrote:
> Eric Christopher <echristo@redhat.com> writes:
> > /* { dg-do compile }
> >    { dg-require-iconv "IBM-1047" }
> >    { dg-final { scan-assembler-not "abcdefghijklmnopqrstuvwxyz" } } */
> >
> > extern char *bar;
> >
> > extern void foo (void)
> > {
> >    char str[]="abcdefghijklmnopqrstuvwxyz";
> >    bar = str;
> > }
> 
> I'm not totally clear on what this is testing.

That it translates the string.. It really came across from a c++
testcase, but I figured I should throw it in both places. I submitted a
patch for the c++ bits a few times.

>   And where do you set
> -fexec-charset=IBM-1047?

gcc.dg/charset/charset.exp

-eric

-- 
Eric Christopher <echristo@redhat.com>



More information about the Gcc-patches mailing list