ORCA-C/Tests/Conformance/C2.7.3.2.CC

21 lines
402 B
Plaintext
Raw Normal View History

/* 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");
}