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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [new25.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
// 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.