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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr34241.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
 
3
inline void *operator  new (__SIZE_TYPE__, void *__p) throw ()
4
{
5
  return __p;
6
}
7
struct A
8
{
9
  A(int, double);
10
  inline explicit A (int pattern, bool cs)
11
  {
12
    new (this) A (pattern, double(cs));
13
  }
14
};
15
A test ()
16
{
17
  const A a (42, true);
18
}

powered by: WebSVN 2.1.0

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