1 //===- unittests/Threading.cpp - Thread tests -----------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/Support/Threading.h"
11 #include "llvm/Support/thread.h"
12 #include "gtest/gtest.h"
18 TEST(Threading
, PhysicalConcurrency
) {
19 auto Num
= heavyweight_hardware_concurrency();
20 // Since Num is unsigned this will also catch us trying to
22 ASSERT_LE(Num
, thread::hardware_concurrency());
25 } // end anon namespace