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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [new3.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
extern void *operator new(__SIZE_TYPE__); // { dg-error "candidate" }
2
 
3
template 
4
struct C
5
{
6
  void f() {
7
    int* node;
8
    new (&node) int(0); // { dg-error "new" }
9
  }
10
};
11
 
12
void* operator new(__SIZE_TYPE__, void* __p);
13
 
14
void g() {
15
  C c;
16
  c.f();
17
}

powered by: WebSVN 2.1.0

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