aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC++/2007-04-14-FNoBuiltin.cpp
blob: 31e4528754e0d84dcda9a67c672dba9fb18a229c (plain)
1
2
3
4
5
6
7
// RUN: %llvmgcc -S %s -O2 -fno-builtin -o - | grep call.*printf
// Check that -fno-builtin is honored.

extern "C" int printf(const char*, ...);
void foo(const char *msg) {
	printf("%s\n",msg);
}