xref: /minix3/external/bsd/libc++/dist/libcxx/test/thread/thread.condition/cv_status.pass.cpp (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <condition_variable>
11 
12 // enum class cv_status { no_timeout, timeout };
13 
14 #include <condition_variable>
15 #include <cassert>
16 
17 int main()
18 {
19     assert(std::cv_status::no_timeout == 0);
20     assert(std::cv_status::timeout == 1);
21 }
22