blob: af8a10ada41c83c636aef272137783c5d9728191 [file] [log] [blame]
Howard Hinnant3e519522010-05-11 19:42:16 +00001//===----------------------------------------------------------------------===//
2//
Chandler Carruth57b08b02019-01-19 10:56:40 +00003// 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
Howard Hinnant3e519522010-05-11 19:42:16 +00006//
7//===----------------------------------------------------------------------===//
Jonathan Roelofsb3fcc672014-09-05 19:45:05 +00008//
9// UNSUPPORTED: libcpp-has-no-threads
Howard Hinnant3e519522010-05-11 19:42:16 +000010
11// <condition_variable>
12
13// enum class cv_status { no_timeout, timeout };
14
15#include <condition_variable>
16#include <cassert>
17
18int main()
19{
Marshall Clowce81aed42013-12-23 22:14:27 +000020 assert(static_cast<int>(std::cv_status::no_timeout) == 0);
21 assert(static_cast<int>(std::cv_status::timeout) == 1);
Howard Hinnant3e519522010-05-11 19:42:16 +000022}