1 /* Verify zero initialization for floating point type automatic variables.  */
2 /* { dg-do compile } */
3 /* { dg-options "-ftrivial-auto-var-init=zero -fdump-rtl-expand" } */
4 
5 long double result;
6 
foo()7 long double foo()
8 {
9   float temp1;
10   double temp2;
11   long double temp3;
12 
13   result = temp1 + temp2 + temp3;
14   return result;
15 }
16 
17 /* { dg-final { scan-rtl-dump-times "const_double\:SF 0\.0" 1 "expand" } } */
18 /* { dg-final { scan-rtl-dump-times "const_double\:DF 0\.0" 1 "expand" } } */
19 /* { dg-final { scan-rtl-dump-times "const_double\:TF 0\.0" 1 "expand" } } */
20