Files
function/test/function_test_fail1.cpp

21 lines
307 B
C++
Raw Normal View History

#define BOOST_INCLUDE_MAIN
#include <boost/test/test_tools.hpp>
#include <boost/function.hpp>
using namespace std;
using namespace boost;
int
test_main(int, char*[])
{
function<int> f1;
function<int> f2;
if (f1 == f2) {
}
BOOST_CRITICAL_ERROR("This should not have compiled.");
return 0;
}