[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 / constr.compile.fail.cpp
blobdd472f0790445eadec3db86be5a7604b458d1768
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 // <thread>
11 // class thread
12 // template <class _Fp, class ..._Args,
13 // explicit thread(_Fp&& __f, _Args&&... __args);
14 // This constructor shall not participate in overload resolution
15 // if decay<F>::type is the same type as std::thread.
18 #include <thread>
20 int main(int, char**)
22 volatile std::thread t1;
23 std::thread t2 ( t1, 1, 2.0 );
24 return 0;