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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/20039
2
// { dg-do compile }
3
 
4
struct M
5
{
6
  M() : m(0) { }
7
  int m;
8
};
9
 
10
struct X
11
{
12
  M m;
13
  int i;
14
};
15
 
16
int mymain()
17
{
18
  const X *p = new const X[2]; // { dg-error "uninitialized const" }
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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