Fix some llvm-gcc warnings in testcases, mostly by adding includes or adding
[oota-llvm.git] / test / FrontendC / libcalls.c
1 // llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
2 // and -fno-builtins shouldn't.
3 // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep {call.*exp2f}
4 // RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
5 // RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2f}
6
7 float exp2f(float);
8
9 float t4(unsigned char x) {
10   return exp2f(x);
11 }
12