struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2385.c
blob542d5f63a7d8d89f57d9396421692d6d050581df
1 /*
2 bug-2385.c
3 */
5 #include <testfwk.h>
7 typedef struct fileblk *FILE;
8 FILE standin;
10 struct fileblk {
11 int a;
14 int silly(void)
16 FILE f;
17 return (f = standin)->a;
20 void testBug(void)
22 struct fileblk f;
23 f.a = 42;
24 standin = &f;
25 ASSERT(silly() == 42);