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

Subversion Repositories thor

[/] [thor/] [trunk/] [software/] [c64/] [testfiles/] [NewTest.cpp] - Rev 54

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

// Test the new operator
 
// These references will be non-mangled
 
int printf(char *, ...);
 
using name mangler;     // use compiler name mangling facility
 
int main(int argc, char **argv)
{
  void *obj;
 
  obj = new int[100];
  printf("object pointer is %p\n", obj);
  delete obj;
}
 
// Back to using non-mangled names again
using real names;
 
 
 

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

powered by: WebSVN 2.1.0

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