summaryrefslogtreecommitdiff
path: root/absl/log/stripping_test.cc
diff options
context:
space:
mode:
authorGravatar Andy Getzendanner <durandal@google.com>2022-11-04 14:12:33 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-11-04 14:13:19 -0700
commitce1d3484756e20ce96f6404eb62362c87fbd584a (patch)
tree88c530678a419df0025fe44e175155596711da54 /absl/log/stripping_test.cc
parent32e928d29c5edb8a196e876d71a4bb124bff9de2 (diff)
Narrow some _MSC_VER checks to not catch clang-cl.
PiperOrigin-RevId: 486227733 Change-Id: If492d715e5758971cf7bd0ccd748b47b1424a3c7
Diffstat (limited to 'absl/log/stripping_test.cc')
-rw-r--r--absl/log/stripping_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/log/stripping_test.cc b/absl/log/stripping_test.cc
index 83dfc2dc..d6a6606e 100644
--- a/absl/log/stripping_test.cc
+++ b/absl/log/stripping_test.cc
@@ -327,7 +327,7 @@ TEST_F(StrippingTest, Level) {
// level that shouldn't be stripped.
EXPECT_THAT(exe.get(), FileHasSubstr(needle));
} else {
-#if defined(_MSC_VER) || defined(__APPLE__)
+#if (defined(_MSC_VER) && !defined(__clang__)) || defined(__APPLE__)
// Dead code elimination misses this case.
#else
// All levels should be stripped, so it doesn't matter what the severity