ORCA-C/Tests/Conformance/C2.7.3.2.CC
2017-10-21 18:40:19 -05:00

21 lines
402 B
C++

/* Conformance Test 2.7.3.2: Ensure char variables are implemented as */
/* unsigned 8-bit integers */
main ()
{
char a;
int i;
for (i = 0; i < 256; i++)
{
a = i;
if (a != i)
goto Fail;
}
printf ("Passed Conformance Test 2.7.3.2\n");
return;
Fail:
printf ("Failed Conformance Test 2.7.3.2\n");
}