[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / thread / thread.mutex / thread.once / thread.once.onceflag / default.pass.cpp
blobe99f9410adf4254d7c3a3f0db91508107a9fa645
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
11 // <mutex>
13 // struct once_flag;
15 // constexpr once_flag() noexcept;
17 #include <mutex>
18 #include "test_macros.h"
20 int main(int, char**)
23 std::once_flag f;
24 (void)f;
26 #if TEST_STD_VER >= 11
28 constexpr std::once_flag f;
29 (void)f;
31 #endif
33 return 0;