libcruft-util/test/typeidx.cpp
Danny Robson 34788756d2 build: don't use './' as an include prefix
GCC produces ODR error when including paths of the form './foo' and
'foo' in the same binary. Rather than managing duplication we just
universally pick the absolute form over the relative form.
2017-11-22 16:49:37 +11:00

17 lines
487 B
C++

#include "../tap.hpp"
#include "../typeidx.hpp"
///////////////////////////////////////////////////////////////////////////////
int
main (int, char**)
{
util::TAP::logger tap;
tap.expect_eq (util::typeidx<int> (), util::typeidx<int> (), "equality for int");
tap.expect_eq (util::typeidx<float> (), util::typeidx<float> (), "equality for float");
tap.expect_neq (util::typeidx<int> (), util::typeidx<float> (), "inequality for int/float");
return tap.status ();
}