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