summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/instrument-mcount.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/codegen/instrument-mcount.rs')
-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 000000000..b26076e7a
--- /dev/null
+++ b/src/test/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() {}