1 // RUN: %clang_cc1 -ast-dump -ffixed-point %s | FileCheck %s 2 // RUN: %clang_cc1 -ast-dump -ffixed-point -fpadding-on-unsigned-fixed-point %s | FileCheck %s 3 4 /** 5 * Check the same values are printed in the AST regardless of if unsigned types 6 * have the same number of fractional bits as signed types. 7 */ 8 9 unsigned short _Accum u_short_accum = 0.5uhk; 10 unsigned _Accum u_accum = 0.5uk; 11 unsigned long _Accum u_long_accum = 0.5ulk; 12 unsigned short _Fract u_short_fract = 0.5uhr; 13 unsigned _Fract u_fract = 0.5ur; 14 unsigned long _Fract u_long_fract = 0.5ulr; 15 16 //CHECK: FixedPointLiteral {{.*}} 'unsigned short _Accum' 0.5 17 //CHECK: FixedPointLiteral {{.*}} 'unsigned _Accum' 0.5 18 //CHECK: FixedPointLiteral {{.*}} 'unsigned long _Accum' 0.5 19 //CHECK: FixedPointLiteral {{.*}} 'unsigned short _Fract' 0.5 20 //CHECK: FixedPointLiteral {{.*}} 'unsigned _Fract' 0.5 21 //CHECK: FixedPointLiteral {{.*}} 'unsigned long _Fract' 0.5 22