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

// <thread>

// class thread

// thread();

#include <thread>
#include <cassert>

int main()
{
    std::thread t;
    assert(t.get_id() == std::thread::id());
}
OpenPOWER on IntegriCloud