aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/990213-2.c
blob: 6e6b924ed898053e2c26ad07dd61dac2c6bf1bed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { 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];
}