mirror of
https://github.com/boostorg/function.git
synced 2025-07-03 15:56:31 +02:00
Initial Boost.Function commit
[SVN r10372]
This commit is contained in:
20
test/function_test_fail1.cpp
Normal file
20
test/function_test_fail1.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user