blob: a0a13b560f9b52c9ca4a2e4f7878d15f2f4551e7 [file] [log] [blame]
/* { dg-do compile { target i?86-*-* } } */
/* { dg-options "-fPIC" } */
struct normal_encoding {};
struct unknown_encoding {};
static const struct normal_encoding latin1_encoding = {};
struct encoding*
XmlInitUnknownEncoding(void *mem)
{
int i;
struct unknown_encoding *e = mem;
for (i = 0; i < sizeof(struct normal_encoding); i++)
((char *)mem)[i] = ((char *)&latin1_encoding)[i];
return 0;
}