2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2011-06-15 11:19:50 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-23 21:03:09 -07: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 13:13:15 -07:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2015-03-03 10:42:26 +02:00
|
|
|
let mut x: u8 = 19; // 0x13
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2015-03-03 10:42:26 +02:00
|
|
|
let mut y: u8 = 35; // 0x23
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2015-03-03 10:42:26 +02:00
|
|
|
x = x + 7; // 0x7
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2015-03-03 10:42:26 +02:00
|
|
|
y = y - 9; // 0x9
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2013-05-18 22:02:45 -04:00
|
|
|
assert_eq!(x, y);
|
2011-08-19 15:16:48 -07:00
|
|
|
}
|