We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5340360 commit 4afb48aCopy full SHA for 4afb48a
libcxx/test/std/time/time.traits.is.clock/trait.is.clock.compile.verify.cpp
@@ -11,6 +11,10 @@
11
#include <chrono>
12
#include <ratio>
13
14
+#if !__has_warning("-Winvalid-specializations")
15
+// expected-no-diagnostics
16
+#else
17
+
18
namespace std::chrono {
19
// try adding specializations to is_clock
20
template <>
@@ -20,3 +24,5 @@ template <>
24
constexpr bool is_clock_v<float> = false; // expected-error@*:* {{'is_clock_v' cannot be specialized}}
21
25
22
26
} // namespace std::chrono
27
28
+#endif
0 commit comments