summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/cvt1.C
blob: aa030827a64b57453546c408b6f610b1a43bbb45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do assemble  }

typedef int Array_T[2];

struct S1 {
  S1(const Array_T&);
};

struct S2 {
  S1 g();
  Array_T a;
};

S1 S2::g()
{
  return S1(a);
}

void h()
{
  S2 s2;
  s2.g();
}