summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/variant/variant.synopsis/variant_npos.pass.cpp
blob: 4d7c8563caadea0ecd181b1642226f116c54608c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++98, c++03, c++11, c++14

// <variant>

// constexpr size_t variant_npos = -1;

#include <variant>

int main() {
  static_assert(std::variant_npos == static_cast<std::size_t>(-1), "");
}
OpenPOWER on IntegriCloud