[libcxx][test] test _LIBCPP_VERSION with #ifdef, not #if

GitOrigin-RevId: a94739985b2c785f036a807c43b561f4befedd69
2 files changed