cxx/test/utilities/time/time.duration/positive_num.fail.cpp

1 line
529 B
C++
Raw Normal View History

//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // <chrono> // duration // Period::num shall be positive, diagnostic required. #include <chrono> int main() { typedef std::chrono::duration<int, std::ratio<5, -1> > D; D d; }