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] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR c++/14962 */
2
/* Originator:  */
3
 
4
/* { dg-do compile { target *-*-solaris* } } */
5
/* { dg-final { scan-assembler "new_name" } } */
6
/* { dg-final { scan-assembler-not "old_name" } } */
7
 
8
#ifndef __PRAGMA_REDEFINE_EXTNAME
9
#error
10
#endif
11
 
12
extern "C" {
13
 
14
struct old_name { int i; };
15
 
16
#pragma redefine_extname old_name new_name
17
 
18
int old_name(void);
19
 
20
}
21
 
22
int foo(void)
23
{
24
  return old_name();
25
}

powered by: WebSVN 2.1.0

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