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 Sambucvoid 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