[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / thread / thread.threads / thread.thread.class / thread.thread.constr / robust_against_adl.pass.cpp
blob9ba8d950b7b0566d9cc12ac57b2516c7cca7fc2a
1 //===----------------------------------------------------------------------===//
2 //
3 // 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
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: no-threads
10 // UNSUPPORTED: c++03
12 // <thread>
14 // class thread
16 // template <class F, class ...Args> thread(F&& f, Args&&... args);
18 #include <thread>
20 #include "test_macros.h"
22 struct Incomplete;
23 template<class T> struct Holder { T t; };
25 void f(Holder<Incomplete> *) { }
27 int main(int, char **)
29 Holder<Incomplete> *p = nullptr;
30 std::thread t(f, p);
31 t.join();
32 return 0;