25 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// <chrono>10 11// duration12 13// If a program instantiates duration with a duration type for the template14// argument Rep a diagnostic is required.15 16#include <chrono>17 18int main(int, char**)19{20 typedef std::chrono::duration<std::chrono::milliseconds> D;21 D d;22 23 return 0;24}25