1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-fre-details" } */ /* From PR14287. */ short g, h; void foo (long a) { short b = a & 3; long c = b; g = c; h = c; } /* { dg-final { scan-tree-dump "Replaced \\\(short int\\\) c_.*with b_" "fre" } } */ /* { dg-final { cleanup-tree-dump "fre" } } */