OSDN Git Service

* c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 990213-2.c
1 /* { dg-do compile { target i?86-*-* } } */
2 /* { dg-options "-fPIC" } */
3
4 struct normal_encoding {};
5 struct unknown_encoding {};
6 static const struct normal_encoding latin1_encoding = {};
7
8 struct encoding*
9 XmlInitUnknownEncoding(void *mem)
10 {
11   int i;
12   struct unknown_encoding *e = mem;
13   for (i = 0; i < sizeof(struct normal_encoding); i++)
14     ((char *)mem)[i] = ((char *)&latin1_encoding)[i];
15   return 0;
16 }