]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/gcc.dg/990213-2.c
re PR c++/14267 (ICE on invalid, cast to lval related)
[gcc.git] / gcc / testsuite / gcc.dg / 990213-2.c
CommitLineData
3c602fcb
JL
1/* { dg-do compile { target i?86-*-* } } */
2/* { dg-options "-fPIC" } */
3
4struct normal_encoding {};
5struct unknown_encoding {};
6static const struct normal_encoding latin1_encoding = {};
7
8struct encoding*
9XmlInitUnknownEncoding(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];
5ce89b2e 15 return 0;
3c602fcb 16}
This page took 1.762401 seconds and 5 git commands to generate.