Clang Project

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