2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 990213-2.c
blob21392bfca79206c4ebd97e10ddcce3780cfb98a8
1 /* { dg-do compile } */
2 /* { dg-require-effective-target fpic } */
3 /* { dg-options "-fPIC" } */
5 struct normal_encoding {};
6 struct unknown_encoding {};
7 static const struct normal_encoding latin1_encoding = {};
9 struct encoding*
10 XmlInitUnknownEncoding(void *mem)
12 int i;
13 struct unknown_encoding *e = mem;
14 for (i = 0; i < sizeof(struct normal_encoding); i++)
15 ((char *)mem)[i] = ((char *)&latin1_encoding)[i];
16 return 0;