File:  [MW Coherent from dump] / coherent / b / bin / ps / ps_b4_krnl68 / foo.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:36 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

main()
{
	unsigned short foo, bar;

	bar = (unsigned short) -1;

	/*
	 * BUG
	 * ( foo = bar) is being treated as (long).
	 */
	if (((unsigned short)(foo = bar)) == (unsigned short) -1) {
		printf("Everything is OK.\n");
	} else {
		printf("Compiler bug.\n");
	}

} /* main() */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.