* Added.
authormichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 1 Mar 2002 06:14:16 +0000 (06:14 +0000)
committermichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 1 Mar 2002 06:14:16 +0000 (06:14 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1959 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/regression/tests/bug-524211.c [new file with mode: 0644]

diff --git a/support/regression/tests/bug-524211.c b/support/regression/tests/bug-524211.c
new file mode 100644 (file)
index 0000000..4ec15d8
--- /dev/null
@@ -0,0 +1,26 @@
+/* Problem with casts and warnings.
+ */
+#include <testfwk.h>
+
+typedef unsigned short UINT16;
+typedef unsigned char UINT8;
+
+typedef struct _Class Class;
+
+typedef struct _String
+{
+  const UINT8 sz[1];
+} String;
+
+struct _Class
+{
+  String *szName;
+};
+
+const Class Bar = {
+  "java.lang.Object",
+};
+
+void foo(void)
+{
+}