OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [offset2.C] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run  }
2
// PRMS Id: 5070 (testcase 2)
3
 
4
int status = 1;
5
 
6
struct foo {
7
  foo& operator= (const foo&) { status = 0; return *this; }
8
};
9
 
10
struct xx {
11
  foo a;
12
};
13
 
14
struct yy : public xx {
15
  yy(foo& a) { xx::a = a; }
16
};
17
 
18
int main()
19
{
20
  foo f;
21
  yy y (f);
22
 
23
  return status;
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.