forked from OSchip/llvm-project
parent
10835d9c67
commit
91dacfec85
|
@ -0,0 +1,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;
|
||||
}
|
||||
*/
|
|
@ -0,0 +1,6 @@
|
|||
// RUN: clang -emit-llvm %s
|
||||
|
||||
void *test(int i)
|
||||
{
|
||||
return (void *)i;
|
||||
}
|
Loading…
Reference in New Issue