aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/return3.C
blob: 61e3dda02cee2db91d12f583614c0ee905951280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PRMS id: 10912

struct A {
  A() { i=10; };
  int i;
};
struct B : public A {};
B b;

A f()
{
  return b;
}

main ()
{
  A a = f ();
  return a.i != 10;
}