xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/variadic-promotion.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -ast-dump %s | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc void variadic(int, ...);
4f4a2713aSLionel Sambuc 
test_floating_promotion(__fp16 * f16,float f32,double f64)5f4a2713aSLionel Sambuc void test_floating_promotion(__fp16 *f16, float f32, double f64) {
6f4a2713aSLionel Sambuc   variadic(3, *f16, f32, f64);
7f4a2713aSLionel Sambuc 
8f4a2713aSLionel Sambuc // CHECK: ImplicitCastExpr {{.*}} 'double' <FloatingCast>
9*0a6a1f1dSLionel Sambuc // CHECK-NEXT: '__fp16'
10f4a2713aSLionel Sambuc 
11f4a2713aSLionel Sambuc // CHECK: ImplicitCastExpr {{.*}} 'double' <FloatingCast>
12f4a2713aSLionel Sambuc // CHECK-NEXT: 'float'
13f4a2713aSLionel Sambuc }
14