brintos

brintos / llvm-project-archived public Read only

0
0
Text · 603 B · 41c7fec Raw
21 lines · c
1// Test without serialization:2// RUN: %clang_cc1 -ast-dump %s | FileCheck %s3//4// Test with serialization:5// RUN: %clang_cc1 -emit-pch -o %t %s6// 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 %s9 10void variadic(int, ...);11 12void 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}21