//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
//
// Copyright 2018, Intel Corporation
//
// Modified to test pmem::obj containers
//
#include "unittest.hpp"
#include <libpmemobj++/experimental/array.hpp>
namespace pmem_exp = pmem::obj::experimental;
template <int Dummy>
struct NoCompare {
};
int
main()
{
START();
int result = 0;
{
typedef NoCompare<0> T;
typedef pmem_exp::array<T, 3> C;
C c1 = {{}};
// expected-error@algorithm:* 2 {{invalid operands to binary
// expression}}
result = (c1 == c1);
result = (c1 < c1);
}
return result;
}