FileCheck mutable_variable. · rust-lang/rust@ea9f968 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit ea9f968
FileCheck mutable_variable.
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
1 | -// skip-filecheck | |
2 | 1 | // unit-test: ConstProp |
3 | 2 | |
4 | 3 | // EMIT_MIR mutable_variable.main.ConstProp.diff |
5 | 4 | fn main() { |
5 | +// CHECK-LABEL: fn main( | |
6 | +// CHECK: debug x => [[x:_.*]]; | |
7 | +// CHECK: debug y => [[y:_.*]]; | |
8 | +// CHECK: [[x]] = const 42_i32; | |
9 | +// CHECK: [[x]] = const 99_i32; | |
10 | +// CHECK: [[y]] = const 99_i32; | |
6 | 11 | let mut x = 42; |
7 | 12 | x = 99; |
8 | 13 | let y = x; |