2018-08-30 12:18:55 +00:00
|
|
|
//@ run-pass
|
2011-06-15 18:19:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-24 04:03:09 +00:00
|
|
|
|
|
|
|
// These constants were chosen because they aren't used anywhere
|
|
|
|
// in the rest of the generated code so they're easily grep-able.
|
2015-03-22 20:13:15 +00:00
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2015-03-03 08:42:26 +00:00
|
|
|
let mut x: u8 = 19; // 0x13
|
2011-06-15 18:19:50 +00:00
|
|
|
|
2015-03-03 08:42:26 +00:00
|
|
|
let mut y: u8 = 35; // 0x23
|
2011-06-15 18:19:50 +00:00
|
|
|
|
2015-03-03 08:42:26 +00:00
|
|
|
x = x + 7; // 0x7
|
2011-06-15 18:19:50 +00:00
|
|
|
|
2015-03-03 08:42:26 +00:00
|
|
|
y = y - 9; // 0x9
|
2011-06-15 18:19:50 +00:00
|
|
|
|
2013-05-19 02:02:45 +00:00
|
|
|
assert_eq!(x, y);
|
2011-08-19 22:16:48 +00:00
|
|
|
}
|