]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gcc.dg/990213-2.c
c-decl.c (finish_function): Warn about a non-void function with no return statement...
[gcc.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 }
This page took 0.038037 seconds and 5 git commands to generate.