//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template // struct common_type, chrono::duration> // { // typedef chrono::duration::type, see below }> type; // }; #include template void test() { typedef typename std::common_type::type Dc; static_assert((std::is_same::value), ""); } int main() { test >, std::chrono::duration >, std::chrono::duration > >(); test >, std::chrono::duration >, std::chrono::duration > >(); test >, std::chrono::duration >, std::chrono::duration > >(); test >, std::chrono::duration >, std::chrono::duration > >(); }