Skip to content
Snippets Groups Projects
Commit 34127832 authored by Christian Engwer's avatar Christian Engwer
Browse files

test const reference

[[Imported from SVN: r5363]]
parent f548987b
No related branches found
No related tags found
No related merge requests found
......@@ -32,18 +32,30 @@ void testContainer(BBF & bbf)
bitset x = bbf[3];
reference y = bbf[4];
const_reference z = bbf[4];
const reference v = bbf[4];
// assignement
y = false;
y[2] = true;
y = x;
y = z;
y = v;
x = y;
x = z;
x = v;
y = cbbf[1];
x = cbbf[1];
bbf[4] = x;
bbf[4] = v;
bbf[4] = y;
bbf[4] = true;
// invoke methods
x.size();
y.size();
z.size();
v.size();
// equality
y == cbbf[2];
y == bbf[3];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment