Fix a bug where we didn't promote 'const float' (or typedefs) to
double in some places.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52846 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/exprs.c b/test/CodeGen/exprs.c
index b4384ee..f1c9a5d 100644
--- a/test/CodeGen/exprs.c
+++ b/test/CodeGen/exprs.c
@@ -1,4 +1,4 @@
-// RUN: clang %s -emit-llvm
+// RUN: clang %s -emit-llvm -o -
// PR1895
// sizeof function
@@ -34,3 +34,8 @@
t2 = __alignof__(test4());
}
+// 'const float' promotes to double in varargs.
+int test5(const float x, float float_number) {
+ return __builtin_isless(x, float_number);
+}
+