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 year;
12
13 // constexpr year operator""y(unsigned long long y) noexcept;
14
15 #include <chrono>
16 #include <type_traits>
17 #include <cassert>
18
19 #include "test_macros.h"
20
main(int,char **)21 int main(int, char**)
22 {
23 using std::chrono::year;
24 year d1 = 1234y; // expected-error-re {{no matching literal operator for call to 'operator""y' {{.*}}}}
25
26 return 0;
27 }
28