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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [init/] [new25.C] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/31988
2
#include 
3
 
4
class C
5
{
6
public:
7
  void* operator new(std::size_t = 32) throw (std::bad_alloc); // { dg-error "first parameter" }
8
  void* operator new[](std::size_t = 32) throw (std::bad_alloc); // { dg-error "first parameter" }
9
  void* operator new(std::size_t = 32, const std::nothrow_t&) throw(); // { dg-error "first parameter" }
10
  void* operator new[](std::size_t = 32, const std::nothrow_t&) throw(); // { dg-error "first parameter" }
11
};
12
 
13
class D
14
{
15
public:
16
  void* operator new(std::size_t,
17
                     const std::nothrow_t& = std::nothrow_t()) throw();
18
  void* operator new[](std::size_t,
19
                       const std::nothrow_t& = std::nothrow_t()) throw();
20
};
21
 
22
class E
23
{
24
public:
25
  void* operator new(std::size_t = 0,
26
                     const std::nothrow_t& = std::nothrow_t()) throw(); // { dg-error "first parameter" }
27
  void* operator new[](std::size_t = 0,
28
                       const std::nothrow_t& = std::nothrow_t()) throw(); // { dg-error "first parameter" }
29
};

powered by: WebSVN 2.1.0

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