aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/conditional.c
blob: ef3283d1d498c418980bcffa8d71042f8b514238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang -emit-llvm %s

float test1(int cond, float a, float b)
{
  return cond ? a : b;
}
/* this will fail for now...
double test2(int cond, float a, double b)
{
  return cond ? a : b;
}
*/