* gcc.dg/990213-2.c: New test.
authorJeffrey A Law <law@cygnus.com>
Sat, 13 Feb 1999 12:23:26 +0000 (12:23 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 13 Feb 1999 12:23:26 +0000 (05:23 -0700)
From-SVN: r25180

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/990213-2.c [new file with mode: 0644]

index b8fb480ab1874bef44472b509d1b8adedd18ff1e..60dff55857cfb94fa64d217f623c029749467fda 100644 (file)
@@ -1,5 +1,7 @@
 Sat Feb 13 00:43:52 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * gcc.dg/990213-2.c: New test.
+
        * gcc.dg/990213-1.c: New test.
 
 Fri Feb 12 11:04:35 1999  Jeffrey A Law  (law@cygnus.com)
diff --git a/gcc/testsuite/gcc.dg/990213-2.c b/gcc/testsuite/gcc.dg/990213-2.c
new file mode 100644 (file)
index 0000000..6e6b924
--- /dev/null
@@ -0,0 +1,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];
+}