struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug1579949.c
blobf656605a68c330b97cac558fcedff1321fc2d968
1 /*
2 bug 1579949
3 */
5 #include <testfwk.h>
7 struct st_s
9 char el;
12 // no need to call this, it generates compiler error for z80, hc08, stack-auto
13 // error 9: FATAL Compiler Internal Error
14 char foo (int x, struct st_s *arg)
17 return ((struct st_s *) arg) -> el;
20 void
21 testBug(void)
23 ASSERT(1);