| 1 |
// Test without serialization: |
| 2 |
// RUN: %clang_cc1 -ast-dump %s | FileCheck %s |
| 3 |
// |
| 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//" \ |
| 8 |
// RUN: | FileCheck %s |
| 9 |
|
| 10 |
void variadic(int, ...); |
| 11 |
|
| 12 |
void test_floating_promotion(__fp16 *f16, float f32, double f64) { |
| 13 |
variadic(3, *f16, f32, f64); |
| 14 |
|
| 15 |
// CHECK: ImplicitCastExpr {{.*}} 'double' <FloatingCast> |
| 16 |
// CHECK-NEXT: '__fp16' |
| 17 |
|
| 18 |
// CHECK: ImplicitCastExpr {{.*}} 'double' <FloatingCast> |
| 19 |
// CHECK-NEXT: 'float' |
| 20 |
} |