Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-llvm %s -o - | grep 'declare i32 @printf' | count 1 && |
2 | // RUN: clang-cc -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 1 && | ||||
3 | // RUN: clang-cc -ffreestanding -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 0 | ||||
Daniel Dunbar | 3ada6ff | 2009-02-15 20:00:15 +0000 | [diff] [blame] | 4 | |
5 | #include <stdio.h> | ||||
6 | |||||
7 | void f0() { | ||||
8 | printf("hello\n"); | ||||
9 | } |