]> git.lizzy.rs Git - rust.git/blobdiff - tests/mir-opt/const_prop/return_place.rs
Move /src/test to /tests
[rust.git] / tests / mir-opt / const_prop / return_place.rs
diff --git a/tests/mir-opt/const_prop/return_place.rs b/tests/mir-opt/const_prop/return_place.rs
new file mode 100644 (file)
index 0000000..06a8536
--- /dev/null
@@ -0,0 +1,11 @@
+// compile-flags: -C overflow-checks=on
+
+// EMIT_MIR return_place.add.ConstProp.diff
+// EMIT_MIR return_place.add.PreCodegen.before.mir
+fn add() -> u32 {
+    2 + 2
+}
+
+fn main() {
+    add();
+}