added few tests for cons lists

[SVN r10925]
This commit is contained in:
Jaakko Järvi
2001-08-24 10:22:45 +00:00
parent 54efc84392
commit 5bc99464e0

View File

@ -261,6 +261,15 @@ void foo7() {
dummy(a);
}
// Testing cons lists
void foo8()
{
cons<volatile float, null_type> a(1, null_type());
cons<const int, cons<volatile float, null_type> > b(2,a);
int i = 3;
cons<int&, cons<const int, cons<volatile float, null_type> > > c(i, b);
BOOST_TEST(make_tuple(3,2,1)==c);
}
// --------------------------------
@ -274,6 +283,7 @@ int test_main(int, char *[]) {
foo5();
foo6();
foo7();
foo8();
return 0;
}