Made lambda test more robust.

The test used a lambda that could be optimized out as a constexpr lambda in 
the C++17 mode, leading to a test faiure due to a missing symbol. This patch
avoids that.

llvm-svn: 362564
1 file changed