aboutsummaryrefslogtreecommitdiff
path: root/test_cases/diff_tests/reference/type.1.cc
blob: a898be46b6695d5dd5276c9d4c820e23afab7902 (plain)
1
2
3
4
5
6
7
8
9
struct foo {
  long* ptr;
  long& lref;
  long&& rref;
};

long func(foo x) {
  return *x.ptr + x.lref + x.rref;
}