[Mips] Add the missing judgment when processing function handleMFLOSlot (#121463)
[llvm-project.git] / libcxx / test / std / utilities / variant / variant.synopsis / variant_npos.pass.cpp
blobe9afc215d634c92391853775cd110cce73e9898d
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: c++03, c++11, c++14
11 // <variant>
13 // constexpr size_t variant_npos = -1;
15 #include <variant>
17 #include "test_macros.h"
19 int main(int, char**) {
20 static_assert(std::variant_npos == static_cast<std::size_t>(-1), "");
22 return 0;