1 // Test without serialization:
2 // RUN: %clang_cc1 -ast-dump %s | FileCheck %s
4 // Test with serialization:
5 // RUN: %clang_cc1 -emit-pch -o %t %s
6 // RUN: %clang_cc1 -x c -include-pch %t -ast-dump-all /dev/null \
7 // RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
10 void variadic(int, ...);
12 void test_floating_promotion(__fp16
*f16
, float f32
, double f64
) {
13 variadic(3, *f16
, f32
, f64
);
15 // CHECK: ImplicitCastExpr {{.*}} 'double' <FloatingCast>
16 // CHECK-NEXT: '__fp16'
18 // CHECK: ImplicitCastExpr {{.*}} 'double' <FloatingCast>
19 // CHECK-NEXT: 'float'