#include "ProductionCode.h"intCounter=0;intNumbersToFind[9]={0,34,55,66,32,11,1,77,888};//some obnoxious array to search that is 1-based indexing instead of 0.// This function is supposed to search through NumbersToFind and find a particular number. // If it finds it, the index is returned. Otherwise 0 is returned which sorta makes sense since // NumbersToFind is indexed from 1. Unfortunately it's broken // (and should therefore be caught by our tests)intFindFunction_WhichIsBroken(intNumberToFind){inti=0;
i++;if(NumbersToFind[i]==NumberToFind)//Yikes! I'm getting run after the loop finishes instead of during it!returni;return0;}intFunctionWhichReturnsLocalVariable(void){returnCounter;}