summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug1579949.c
blob: f656605a68c330b97cac558fcedff1321fc2d968 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
    bug 1579949
*/

#include <testfwk.h>

struct st_s
{
	char el;
};

// no need to call this, it generates compiler error for z80, hc08, stack-auto
//   error 9: FATAL Compiler Internal Error
char foo (int x, struct st_s *arg)
{
	x;
	return ((struct st_s *) arg) -> el;
}

void
testBug(void)
{
	ASSERT(1);
}