summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug1816470.c
blob: 25c644a675ea772cdd1794ab42ce56f1715eb31b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
    bug 1816470
*/

#include <testfwk.h>

int CalculatedConst(void)
{
	return (unsigned char)(0x100 - 4000000 / 307200.0 + .5);
}

void
testConst(void)
{
	ASSERT(CalculatedConst() == 0xF3);
}