]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/histogram/test/histogram_fail0.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / histogram / test / histogram_fail0.cpp
CommitLineData
92f5a8d4
TL
1// Copyright 2019 Hans Dembinski
2//
3// Distributed under the Boost Software License, Version 1.0.
4// (See accompanying file LICENSE_1_0.txt
5// or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7#include <boost/histogram/axis/integer.hpp>
8#include <boost/histogram/make_histogram.hpp>
9
10int main() {
11 using namespace boost::histogram;
12
13 auto h = make_histogram(axis::integer<>(0, 5));
14
15 // invalid sample argument
16 h(0, sample(1));
17
18 auto values = {0, 1};
19 h.fill(values, sample(values)); // invalid sample argument
20}