2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - | grep 'declare i32 @printf' | count 1
|
|
|
|
// RUN: %clang_cc1 -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 1
|
|
|
|
// RUN: %clang_cc1 -ffreestanding -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 0
|
2009-02-16 04:00:15 +08:00
|
|
|
|
2009-11-17 16:57:36 +08:00
|
|
|
int printf(const char *, ...);
|
2009-02-16 04:00:15 +08:00
|
|
|
|
|
|
|
void f0() {
|
|
|
|
printf("hello\n");
|
|
|
|
}
|