DESC="Pass options directly to compiler"
main(){
	if  ( ${AGCC} -v2 --Xcompiler --real-instances --Xweaver --gen_config -o test_11.config);then
		ERR_MSG="Execution should have failed as --real-instances is not a gcc option: '${AGCC} -v2 --Xcompiler --real-instances --Xweaver --gen_config -o test_11.config'";
		return 0;
	else
		true;
	fi;
	
	OPT_COUNTER=`grep 'Options (G++):' ${STDOUT_FILE}|grep -c '\-\-real-instances'`; 
	if  (test ${OPT_COUNTER} -eq 1);then true;else
		ERR_MSG="The option '--real-instances' has not been passed to gcc";
		return 0;
	fi;
	
	OPT_COUNTER=`grep 'Options (AC++)' ${STDOUT_FILE}|grep -c '\-\-real-instances'` 
	if  (test ${OPT_COUNTER} -eq 1);then
		ERR_MSG="The option '--real-instances' has accidently been passed to ac++";
		return 0;
	else
		true;
	fi;
	
	if  ( ${AGCC} -v2 --Xcompiler -ansi -pipe -DFOO --Xweaver --real-instances --gen_config -o test_11.config );then true;else
		ERR_MSG="Execution failed: '${AGCC} -v2 --Xcompiler -ansi -pipe --Xweaver --real-instances --gen_config -o test_11.config'";
		return 0;
	fi;
	
	OPT_COUNTER=`grep 'Options (G++):' ${STDOUT_FILE}|grep -c '\-ansi'` 
	if  (test ${OPT_COUNTER} -eq 1);then true;else
		ERR_MSG="The option '-ansi' has not been passed to gcc";
		return 0;
	fi;
	
	OPT_COUNTER=`grep 'Options (G++)' ${STDOUT_FILE}|grep -c '\-pipe'` 
	if  (test ${OPT_COUNTER} -eq 1);then true;else
		ERR_MSG="The option '-pipe' has not been passed to gcc";
		return 0;
	fi;
	
	OPT_COUNTER=`grep 'Options (G++)' ${STDOUT_FILE}|grep -c '\-DFOO'` 
	if  (test ${OPT_COUNTER} -eq 1);then true;else
		ERR_MSG="The option '-DFOO' has not been passed to gcc";
		return 0;
	fi;
	
	OPT_COUNTER=`grep 'Options (AC++)' ${STDOUT_FILE}|grep -c '\-\-real-instances'` 
	if  (test ${OPT_COUNTER} -eq 1);then true;else
		ERR_MSG="The option '--real-instances' has not been passed to ac++";
		return 0;
	fi;
	
	OPT_COUNTER=`grep 'Options (AC++)' ${STDOUT_FILE}|grep -c '\-DFOO'` 
	if  (test ${OPT_COUNTER} -eq 1);then true;else
		ERR_MSG="The option '-DFOO' has not been passed to ac++";
		return 0;
	fi;
	

	rm -f test_11.config
	return 1;
}
