summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2007-04-14-FNoBuiltin.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2007-04-14-FNoBuiltin.c')
-rw-r--r--clang/test/CodeGen/2007-04-14-FNoBuiltin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2007-04-14-FNoBuiltin.c b/clang/test/CodeGen/2007-04-14-FNoBuiltin.c
new file mode 100644
index 0000000..a5fda63
--- /dev/null
+++ b/clang/test/CodeGen/2007-04-14-FNoBuiltin.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin -o - | grep call.*printf
+// Check that -fno-builtin is honored.
+
+extern int printf(const char*, ...);
+void foo(const char *msg) {
+ printf("%s\n",msg);
+}