summaryrefslogtreecommitdiffstats
path: root/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.static/hardware_concurrency.pass.cpp
blob: 67c5c1da7e0a90b5b0a37c75a8b9b88caea43cc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// <thread>

// class thread

// unsigned hardware_concurrency();

#include <thread>
#include <cassert>

int main()
{
    assert(std::thread::hardware_concurrency() > 0);
}
OpenPOWER on IntegriCloud