1/* { dg-do compile } */
2/* { dg-options "-O1 -fdump-tree-vars" } */
3
4int &f(int *a)
5{
6  return *a;
7}
8
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 "vars"} } */
12/* { dg-final { cleanup-tree-dump "vars" } } */
13