]> granicus.if.org Git - clang/commitdiff
testcase for mike's fix for PR3612
authorChris Lattner <sabre@nondot.org>
Sun, 1 Mar 2009 03:26:22 +0000 (03:26 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Mar 2009 03:26:22 +0000 (03:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65757 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/builtin-rename.c [new file with mode: 0644]

diff --git a/test/CodeGen/builtin-rename.c b/test/CodeGen/builtin-rename.c
new file mode 100644 (file)
index 0000000..b5e4fef
--- /dev/null
@@ -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);
+}