Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/mir-opt/dataflow-const-prop/mult_by_zero.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
214 B
Rust
Raw Normal View History

mir-opt tests: rename unit-test -> test-mir-pass
2024-04-20 13:19:34 +02:00
//@ test-mir-pass: DataflowConstProp
Implement algebraic simplifications.
2023-04-15 17:00:43 +00:00
// EMIT_MIR mult_by_zero.test.DataflowConstProp.diff
resolve code reviews
2024-01-11 23:22:33 -08:00
// CHECK-LABEL: fn test(
rustfmt `tests/mir-opt`. The only non-obvious changes: - `building/storage_live_dead_in_statics.rs` has a `#[rustfmt::skip]` attribute to avoid reformating a table of data. - Two `.mir` files have slight changes involving line numbers. - In `unusual_item_types.rs` an `EMIT_MIR` annotation is moved to outside a function, which is the usual spot, because `tidy` complains if such a comment is indented. The commit also tweaks the comments in `rustfmt.toml`.
2024-06-03 10:18:33 +10:00
fn test(x: i32) -> i32 {
x * 0
// CHECK: _0 = const 0_i32;
Implement algebraic simplifications.
2023-04-15 17:00:43 +00:00
}
fn main() {
test(10);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 324ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API