summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug3117721.c
blob: f500d5cf52674a292556eb225f44d8f8967845a2 (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
25
/*
 * bug3117721.c
 */

#include <testfwk.h>

/* should not generate:
   warning 185: comparison of 'signed char' with 'unsigned char' requires promotion to int */
char GenerateBug(unsigned char iKey)
{
	if (iKey == 'T')
	{
		return 1;
	}
	else if (iKey != 't')
	{
		return 2;
	}
	return 0;
}

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