Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / bug1579949.c
1 /*
2     bug 1579949
3 */
4
5 #include <testfwk.h>
6
7 struct st_s
8 {
9         char el;
10 };
11
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)
15 {
16         x;
17         return ((struct st_s *) arg) -> el;
18 }
19
20 void
21 testBug(void)
22 {
23         ASSERT(1);
24 }