/* $Id: test6.c,v 1.2 2009/01/27 15:58:54 potyra Exp $ 
 *
 * Copyright (C) 2007-2009 FAUcc Team <info@faumachine.org>.
 * This program is free software. You can redistribute it and/or modify it
 * under the terms of the GNU General Public License, either version 2 of
 * the License, or (at your option) any later version. See COPYING.
 */

/*
 * Testing simplification of LHS of expressions.
 */

int
main(void)
{
	struct complex {
		double r;
		double i;
	};

	struct complex a, b;
	struct complex array[10];
	struct complex *pointer;

	pointer = &a;

	a.r = b.i;
	a.r = array[2].i;
	a.r = pointer->i;

	b.i = a.r;
	array[2].i = a.r;
	pointer->i = a.r;

	a.i = (b.i = 0, 0.0);

	a.i = b.i++;

	return 0;
}
