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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [other/] [pragma-re-2.C] - Rev 816

Compare with Previous | Blame | View Log

/* PR c++/14962 */
/* Originator: <phil@fsel.com> */

/* { dg-do compile { target *-*-solaris* } } */
/* { dg-final { scan-assembler "new_name" } } */
/* { dg-final { scan-assembler-not "old_name" } } */

#ifndef __PRAGMA_REDEFINE_EXTNAME
#error 
#endif

extern "C" {

struct old_name { int i; };

#pragma redefine_extname old_name new_name

int old_name(void);

}

int foo(void)
{
  return old_name();
}

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.