aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/builtin-rename.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-01 03:26:22 +0000
committerChris Lattner <sabre@nondot.org>2009-03-01 03:26:22 +0000
commit12a7634a7c8a463c47e64e5323cdcee6274e5e2e (patch)
tree507537f3819b4feaf738fec17d6df2c4888c70b5 /test/CodeGen/builtin-rename.c
parentce2b4cc61b129b034dc66bb859deef03888073e2 (diff)
testcase for mike's fix for PR3612
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/builtin-rename.c')
-rw-r--r--test/CodeGen/builtin-rename.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/builtin-rename.c b/test/CodeGen/builtin-rename.c
new file mode 100644
index 0000000000..b5e4fef61f
--- /dev/null
+++ b/test/CodeGen/builtin-rename.c
@@ -0,0 +1,8 @@
+// RUN: clang %s -emit-llvm -o - | grep 'declare.*printf' | count 1
+// PR3612
+
+int printf(const char *, ...);
+
+int foo(void) {
+ return printf(printf);
+}