about summary refs log tree commit diff
path: root/tests/mir-opt/building/custom/operators.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/building/custom/operators.rs')
-rw-r--r--tests/mir-opt/building/custom/operators.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/mir-opt/building/custom/operators.rs b/tests/mir-opt/building/custom/operators.rs
index eb97bcc73b7..ff0e8dcbb41 100644
--- a/tests/mir-opt/building/custom/operators.rs
+++ b/tests/mir-opt/building/custom/operators.rs
@@ -30,3 +30,13 @@ pub fn f(a: i32, b: bool) -> i32 {
         Return()
     })
 }
+
+// EMIT_MIR operators.g.runtime.after.mir
+#[custom_mir(dialect = "runtime")]
+pub fn g(p: *const i32, q: *const [i32]) {
+    mir!({
+        let a = PtrMetadata(p);
+        let b = PtrMetadata(q);
+        Return()
+    })
+}