2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
tag foo { large; small; }
|
2010-09-21 13:47:10 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-07-26 07:49:40 -05:00
|
|
|
auto a = rec(x=1, y=2, z=3);
|
|
|
|
auto b = rec(x=1, y=2, z=3);
|
2011-06-15 13:19:50 -05:00
|
|
|
assert (a == b);
|
2011-07-26 07:49:40 -05:00
|
|
|
assert (a != rec(x=1, y=2, z=4));
|
|
|
|
assert (a < rec(x=1, y=2, z=4));
|
|
|
|
assert (a <= rec(x=1, y=2, z=4));
|
|
|
|
assert (rec(x=1, y=2, z=4) > a);
|
|
|
|
assert (rec(x=1, y=2, z=4) >= a);
|
2011-06-15 13:19:50 -05:00
|
|
|
auto x = large;
|
|
|
|
auto y = small;
|
|
|
|
assert (x != y);
|
|
|
|
assert (x == large);
|
|
|
|
assert (x != small);
|
2010-09-21 13:47:10 -05:00
|
|
|
}
|