]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/2007-04-14-FNoBuiltin.c
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CodeGen / 2007-04-14-FNoBuiltin.c
1 // RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin -o - | FileCheck %s
2 // Check that -fno-builtin is honored.
3
4 extern int printf(const char*, ...);
5
6 // CHECK: define void {{.*}}foo(
7 void foo(const char *msg) {
8   // CHECK: call {{.*}}printf
9   printf("%s\n",msg);
10 }