PR3589-freestanding-libcalls.c revision 3ada6ffd92e02b02f1cdb3c2044aab24dbe0b755
1// RUN: clang -emit-llvm %s -o - | grep 'declare i32 @printf' | count 1 &&
2// RUN: clang -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 1 &&
3// RUN: clang -ffreestanding -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 0
4
5#include <stdio.h>
6
7void f0() {
8  printf("hello\n");
9}
10