summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug-3355.c
blob: 783aff6c4fe6bdd537b56d43ff292f3c3616f60a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* bug-3255.c
   A bug in comparisons on mcs51.
 */
 
#include <testfwk.h>

volatile unsigned char ua, ub;

int f(void)
{
	if((ua <= ub) == 1) // No bug without the == 1 here.
		return 1;
	return 0;
}

void testBug(void)
{
	ua = 1;
	ub = 2;
	ASSERT (f());
}