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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [new3.C] - Blame information for rev 693

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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