diff options
| author | Patrick Walton <[email protected]> | 2010-07-26 15:20:13 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-07-26 15:22:21 -0700 |
| commit | 4b97b4e79db70ca4ed6b9026c87858e97e92cc67 (patch) | |
| tree | 91e35aeb9f5d0f179d2af7e21894bd555a515f0a /src/test/run-pass/linear-for-loop.rs | |
| parent | Note the typestate dataflow timing. The culprit is revealed. (diff) | |
| download | rust-4b97b4e79db70ca4ed6b9026c87858e97e92cc67.tar.xz rust-4b97b4e79db70ca4ed6b9026c87858e97e92cc67.zip | |
Move the test suite to the "as" form for casts. XFAIL a few tests for LLVM.
Diffstat (limited to 'src/test/run-pass/linear-for-loop.rs')
| -rw-r--r-- | src/test/run-pass/linear-for-loop.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/run-pass/linear-for-loop.rs b/src/test/run-pass/linear-for-loop.rs index 4312aea8..8bb1a5d9 100644 --- a/src/test/run-pass/linear-for-loop.rs +++ b/src/test/run-pass/linear-for-loop.rs @@ -12,23 +12,23 @@ fn main() { let int i = 0; for (u8 c in s) { if (i == 0) { - check (c == u8('h')); + check (c == ('h' as u8)); } if (i == 1) { - check (c == u8('e')); + check (c == ('e' as u8)); } if (i == 2) { - check (c == u8('l')); + check (c == ('l' as u8)); } if (i == 3) { - check (c == u8('l')); + check (c == ('l' as u8)); } if (i == 4) { - check (c == u8('o')); + check (c == ('o' as u8)); } // ... if (i == 12) { - check (c == u8(0)); + check (c == (0 as u8)); } i += 1; log i; |