blob: 46aaa30e51e4afac41a46525e300ccfd1e8e9077 [file] [log] [blame]
Marshall Clow3ceafc72013-10-05 21:18:32 +00001// -*- C++ -*-
2//===----------------------------------------------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//
9//===----------------------------------------------------------------------===//
10#include <chrono>
11#include <cassert>
12
13int main()
14{
15#if _LIBCPP_STD_VER > 11
16 std::chrono::hours h = 4h; // should fail w/conversion operator not found
17#else
18#error
19#endif
20}
21