rep01.fail.cpp 603 B

123456789101112131415161718192021222324252627
  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. // <chrono>
  9. // duration
  10. // template <class Rep2>
  11. // explicit duration(const Rep2& r);
  12. // test for explicit
  13. #include <chrono>
  14. #include "../../rep.h"
  15. int main(int, char**)
  16. {
  17. std::chrono::duration<int> d = 1;
  18. return 0;
  19. }