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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [copy3.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run }
2
// { dg-options "-fno-elide-constructors" }
3
 
4
int copies;
5
 
6
struct S {
7
  S () {}
8
  S (const S&) { ++copies; }
9
};
10
 
11
S s[1] = { S () };
12
 
13
int main () {
14
  if (copies != 1)
15
    return 1;
16
}

powered by: WebSVN 2.1.0

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