OpenBSD-4.6/regress/usr.bin/xlint/test-16.c

 /*	$OpenBSD: test-16.c,v 1.1 2006/03/20 05:06:37 cloder Exp $	*/

/*
 * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
 *
 * Test lint dealing with cascaded ==
 */
#include <sys/types.h>

/* ARGSUSED */
int
main(int argc, char* argv[])
{
	mode_t mode;

	mode = (mode_t)argc;

	if ((((mode) & 0170000) == 0100000) == 0)
		return 1;

	return 0;
}