]> granicus.if.org Git - clang/commitdiff
Add a testcase for the mcount profiling.
authorRoman Divacky <rdivacky@freebsd.org>
Thu, 10 Feb 2011 16:52:35 +0000 (16:52 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Thu, 10 Feb 2011 16:52:35 +0000 (16:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125283 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/mcount.c [new file with mode: 0644]

diff --git a/test/CodeGen/mcount.c b/test/CodeGen/mcount.c
new file mode 100644 (file)
index 0000000..1cf3d6a
--- /dev/null
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -pg -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s
+void foo(void) {
+// CHECK: call void @mcount()
+}