aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/pr101640.d
blob: 68de40885127e5edbd453d7b4495d1d7cf0ef9ac (plain)
1
2
3
4
5
6
7
8
9
10
11
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101640
// { dg-do compile }
// { dg-options "-fdump-tree-original" }

int fun101640(ref int);

int test101640(int val)
{
    // { dg-final { scan-tree-dump "= val \\\+ fun101640 \\\(\\\(int &\\\) &val\\\);" "original" } }
    return val + fun101640(val);
}