gmt@ARIZONA.EDU ("Gregg Townsend") (11/16/88)
/* gcc v1.30, on a Vax 8650, Mt Xinu 4.3 BSD, gets:
*
* Assembler:
* "/tmp/cc015302.s", line 15: WARNING:
* Immediate constant type long mismatches instruction type byte
*
* This is for a simple "gcc xxx.c" with no special options.
* The generated code does work, however, and prints 254 as expected.
*/
unsigned char c;
char *x = (char *) &c;
main()
{
* (unsigned char *) x = 254;
printf("%d\n",c);
}