aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/char.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/char.rs')
-rw-r--r--src/test/run-pass/char.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/run-pass/char.rs b/src/test/run-pass/char.rs
new file mode 100644
index 00000000..123f2eb2
--- /dev/null
+++ b/src/test/run-pass/char.rs
@@ -0,0 +1,12 @@
+fn main() {
+ let char c = 'x';
+ let char d = 'x';
+ check(c == 'x');
+ check('x' == c);
+ check(c == c);
+ check(c == d);
+ check(d == c);
+ check (d == 'x');
+ check('x' == d);
+}
+