Can you please check and see if you get the same problem with this code sample:
#define MACRO_FUNCTION_NAME(funcName, paramList) void funcName(paramList)
MACRO_FUNCTION_NAME(SmartSelectFails, int nSize)
{
int nEvenTotal = 0;
for(int nCounter = 0; nCounter < nSize; ++nCounter)
{
if(0 == (nCounter % 2))
{
nEvenTotal += nCounter;
}
}
}
I am not seeing any problems here with this, so its possible the problem is related to Google Test macros. I am checking that now.