blob: 4e953220f7c5d7fda442f9b3063fa54df58a211f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
int &f(int *a)
{
return *a;
}
/* There should be no cast as pointer and references are
considered the same type. */
/* { dg-final { scan-tree-dump-times "\\(int &\\)" 0 "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|