Check in these testcases.

llvm-svn: 39829
This commit is contained in:
Chris Lattner 2007-07-13 20:18:44 +00:00
parent 10835d9c67
commit 91dacfec85
2 changed files with 18 additions and 0 deletions

View File

@ -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;
}
*/

View File

@ -0,0 +1,6 @@
// RUN: clang -emit-llvm %s
void *test(int i)
{
return (void *)i;
}