From: michaelh Date: Fri, 1 Mar 2002 06:14:16 +0000 (+0000) Subject: * Added. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=cd45f3c1e7a2c7384e134610b6348c7ca61a7d40;hp=8c6497729564e3d8035c6314c05b75a2bae8663a;p=fw%2Fsdcc * Added. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1959 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/support/regression/tests/bug-524211.c b/support/regression/tests/bug-524211.c new file mode 100644 index 00000000..4ec15d89 --- /dev/null +++ b/support/regression/tests/bug-524211.c @@ -0,0 +1,26 @@ +/* Problem with casts and warnings. + */ +#include + +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) +{ +}