Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / ssa-cast-1.C
blob4e953220f7c5d7fda442f9b3063fa54df58a211f
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 int &f(int *a)
6   return *a;
9 /* There should be no cast as pointer and references are
10    considered the same type. */
11 /* { dg-final { scan-tree-dump-times "\\(int &\\)" 0 "optimized"} } */
12 /* { dg-final { cleanup-tree-dump "optimized" } } */