summaryrefslogtreecommitdiffstats
path: root/tests/codegen/instrument-mcount.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/instrument-mcount.rs')
-rw-r--r--tests/codegen/instrument-mcount.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/codegen/instrument-mcount.rs b/tests/codegen/instrument-mcount.rs
new file mode 100644
index 000000000..b26076e7a
--- /dev/null
+++ b/tests/codegen/instrument-mcount.rs
@@ -0,0 +1,7 @@
+//
+// compile-flags: -Z instrument-mcount
+
+#![crate_type = "lib"]
+
+// CHECK: attributes #{{.*}} "frame-pointer"="all" "instrument-function-entry-inlined"="{{.*}}mcount{{.*}}"
+pub fn foo() {}