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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wextra-2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-Wextra" }
2
 
3
struct S {
4
  S();
5
};
6
 
7
struct T {
8
private:
9
  int i;
10
public:
11
  // There should be no warning about this data member because the
12
  // default constructor for "T" will invoke the default constructor
13
  // for "S", even though "S" is "const".
14
  const S s; // { dg-bogus "const" }
15
};

powered by: WebSVN 2.1.0

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