[patch] new exec-charset testcase
Eric Christopher
echristo@redhat.com
Mon Apr 19 23:04:00 GMT 2004
On Mon, 2004-04-19 at 15:59, Zack Weinberg wrote:
> Eric Christopher <echristo@redhat.com> writes:
>
> > Things you didn't realize people do... I have a similar one for c++ but
> > it doesn't work without a patch I've posted - and unfortunately I've
> > found some other problems so for c++ i'll see what I can do there.
> >
> > OK? Does this qualify as "obvious"?
>
> Y'gotta make the string constant be used, or it'll get deleted when
> the compiler gets cleverer, vitiating the test.
Umm.. I meant to include the changed test in that mail :)
/* { 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;
}
--
Eric Christopher <echristo@redhat.com>
More information about the Gcc-patches
mailing list