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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libstdc++-v3/] [testsuite/] [18_support/] [headers/] [new/] [synopsis.cc] - Blame information for rev 749

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

Line No. Rev Author Line
1 742 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
4
//
5
// This file is part of the GNU ISO C++ Library.  This library is free
6
// software; you can redistribute it and/or modify it under the
7
// terms of the GNU General Public License as published by the
8
// Free Software Foundation; either version 3, or (at your option)
9
// any later version.
10
 
11
// This library is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
// GNU General Public License for more details.
15
 
16
// You should have received a copy of the GNU General Public License along
17
// with this library; see the file COPYING3.  If not see
18
// <http://www.gnu.org/licenses/>.
19
 
20
#include <new>
21
 
22
namespace std {
23
  class bad_alloc;
24
  struct nothrow_t;
25
  extern const nothrow_t nothrow;
26
  typedef void (*new_handler)();
27
  new_handler set_new_handler(new_handler new_p) throw();
28
}
29
 
30
void* operator new(std::size_t size) throw(std::bad_alloc);
31
void* operator new(std::size_t size, const std::nothrow_t&) throw();
32
void  operator delete(void* ptr) throw();
33
void  operator delete(void* ptr, const std::nothrow_t&) throw();
34
void* operator new[](std::size_t size) throw(std::bad_alloc);
35
void* operator new[](std::size_t size, const std::nothrow_t&) throw();
36
void  operator delete[](void* ptr) throw();
37
void  operator delete[](void* ptr, const std::nothrow_t&) throw();
38
 
39
void* operator new  (std::size_t size, void* ptr) throw();
40
void* operator new[](std::size_t size, void* ptr) throw();
41
void  operator delete  (void* ptr, void*) throw();
42
void  operator delete[](void* ptr, void*) throw();

powered by: WebSVN 2.1.0

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