summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug3166064.c
blob: ae9e90fc3c849bd61205d963af590a2e1a4a0d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
   bug3166064.c
*/

#include <testfwk.h>

int print (const char * fmt, ...)
{
	ASSERT (*fmt == '%');
	return 5;
}

void bug3166064(unsigned char x)
{
	ASSERT (x == 5);
}

unsigned long l;

unsigned long *f(int * pi, unsigned char * pc)
{
	pi;
	pc;
	return &l;
}

void bug3394118(void * p)
{
	ASSERT (p == &l);
}

void testBug(void)
{
	bug3166064(print("%d", 1));
	bug3394118(f(0, 0));
}