]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/logic/test/compile-fail/operator_less_2.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / logic / test / compile-fail / operator_less_2.cpp
1 // Copyright 2018 James E. King III. Use, modification and
2 // distribution is subject to the Boost Software License, Version
3 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5
6 #include <boost/logic/tribool.hpp>
7
8 int main(int, char*[])
9 {
10 using boost::logic::tribool;
11
12 tribool t(true);
13
14 return t < 1; // expect to see: error: invalid operands to binary expression ('boost::logic::tribool' and 'int')
15 }