about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/patchable-function-entry.rs')
-rw-r--r--tests/codegen/patchable-function-entry.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/codegen/patchable-function-entry.rs b/tests/codegen/patchable-function-entry.rs
new file mode 100644
index 00000000000..f06739303d2
--- /dev/null
+++ b/tests/codegen/patchable-function-entry.rs
@@ -0,0 +1,8 @@
+// compile-flags: -Z patchable-function-entry=15,10
+
+#![crate_type = "lib"]
+
+#[no_mangle]
+pub fn foo() {}
+// CHECK: @foo() unnamed_addr #0
+// CHECK: attributes #0 = { {{.*}}"patchable-function-entry"="5"{{.*}}"patchable-function-prefix"="10" {{.*}} }