This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] new exec-charset testcase
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>