Skip to content

Commit 4afb48a

Browse files
fix AIX CI
1 parent 5340360 commit 4afb48a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libcxx/test/std/time/time.traits.is.clock/trait.is.clock.compile.verify.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
#include <chrono>
1212
#include <ratio>
1313

14+
#if !__has_warning("-Winvalid-specializations")
15+
// expected-no-diagnostics
16+
#else
17+
1418
namespace std::chrono {
1519
// try adding specializations to is_clock
1620
template <>
@@ -20,3 +24,5 @@ template <>
2024
constexpr bool is_clock_v<float> = false; // expected-error@*:* {{'is_clock_v' cannot be specialized}}
2125

2226
} // namespace std::chrono
27+
28+
#endif

0 commit comments

Comments
 (0)