mirror of
https://github.com/boostorg/tuple.git
synced 2025-07-30 04:37:15 +02:00
added few tests for cons lists
[SVN r10925]
This commit is contained in:
@ -261,6 +261,15 @@ void foo7() {
|
|||||||
dummy(a);
|
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();
|
foo5();
|
||||||
foo6();
|
foo6();
|
||||||
foo7();
|
foo7();
|
||||||
|
foo8();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user