1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin -o - | FileCheck %s 2*f4a2713aSLionel Sambuc // Check that -fno-builtin is honored. 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc extern int printf(const char*, ...); 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc // CHECK: define void {{.*}}foo( foo(const char * msg)7*f4a2713aSLionel Sambucvoid foo(const char *msg) { 8*f4a2713aSLionel Sambuc // CHECK: call {{.*}}printf 9*f4a2713aSLionel Sambuc printf("%s\n",msg); 10*f4a2713aSLionel Sambuc } 11