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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [new2.C] - Blame information for rev 704

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

Line No. Rev Author Line
1 693 jeremybenn
// Origin: asharji@uwaterloo.ca
2
 
3
// { dg-do compile }
4
 
5
class bar {
6
  public :
7
    bar() { }
8
    void * operator new ( __SIZE_TYPE__ , void * storage )
9
     { return (void *)1;}
10
};
11
 
12
class foo {
13
  public:
14
    void mem ( ) {
15
        new ( 0 ) bar;
16
    }
17
};

powered by: WebSVN 2.1.0

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