Debian Codegraph @

libcxx/test/std/time/time.cal/time.cal.day/time.cal.day.nonmembers/literals.verify.cpp

raw
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 // UNSUPPORTED: c++03, c++11, c++14, c++17
9
10 // <chrono>
11 // class day;
12
13 // constexpr day operator""d(unsigned long long d) noexcept;
14
15 #include <chrono>
16 #include <type_traits>
17 #include <cassert>
18
19 #include "test_macros.h"
20
21 int main(int, char**)
22 {
23 using day = std::chrono::day;
24 day d1 = 4d; // expected-error-re {{no matching literal operator for call to 'operator""d' {{.*}}}}
25
26 return 0;
27 }