diff options
author | Derek Mauro <dmauro@google.com> | 2023-01-17 08:49:13 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-01-17 08:50:43 -0800 |
commit | 1fb3830b1cf685999bb2bbd0294be0a53c9440a6 (patch) | |
tree | 1944dfda4c8da7c6c2e42ed00e0787360b09e4ea /absl/hash | |
parent | bb63a76710554cebbeb20306739a7b832be38c4a (diff) |
Tweak the compilation condition for IsHashableTest.PoisonHash
#1359
PiperOrigin-RevId: 502597369
Change-Id: I5d65ed7e2dbe4b51ebce47f282ead89d91d919cd
Diffstat (limited to 'absl/hash')
-rw-r--r-- | absl/hash/hash_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/hash/hash_test.cc b/absl/hash/hash_test.cc index 744a2e54..5b556180 100644 --- a/absl/hash/hash_test.cc +++ b/absl/hash/hash_test.cc @@ -904,8 +904,8 @@ TEST(IsHashableTest, PoisonHash) { EXPECT_FALSE(absl::is_copy_assignable<absl::Hash<X>>::value); EXPECT_FALSE(absl::is_move_assignable<absl::Hash<X>>::value); EXPECT_FALSE(IsHashCallable<X>::value); -#if !defined(__GNUC__) || __GNUC__ < 9 - // This doesn't compile on GCC 9. +#if !defined(__GNUC__) || defined(__clang__) + // TODO(b/144368551): As of GCC 8.4 this does not compile. EXPECT_FALSE(IsAggregateInitializable<absl::Hash<X>>::value); #endif } |