about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorYuki OKUSHI <huyuumi.dev@gmail.com>2019-03-29 06:44:31 +0900
committerYuki OKUSHI <huyuumi.dev@gmail.com>2019-03-29 06:44:31 +0900
commit261a91519d57590283b250ea9dc1d924b01d4dd6 (patch)
treee4ff738c4b2f7118135511ba08eececd36717013 /src/test/codegen
parent237bf3244fffef501cf37d4bda00e1fce3fcfb46 (diff)
downloadrust-261a91519d57590283b250ea9dc1d924b01d4dd6.tar.gz
rust-261a91519d57590283b250ea9dc1d924b01d4dd6.zip
Use platform dependent mcount function
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/instrument-mcount.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/codegen/instrument-mcount.rs b/src/test/codegen/instrument-mcount.rs
new file mode 100644
index 00000000000..bd01556d986
--- /dev/null
+++ b/src/test/codegen/instrument-mcount.rs
@@ -0,0 +1,7 @@
+// ignore-tidy-linelength
+// compile-flags: -Z instrument-mcount
+
+#![crate_type = "lib"]
+
+// CHECK: attributes #{{.*}} "instrument-function-entry-inlined"="{{_*}}mcount" "no-frame-pointer-elim"="true"
+pub fn foo() {}