summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/pragma-re-2.C
blob: ca71a01a2b59defc50fc1e7593714815380d2781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* PR c++/14962 */
/* Originator: <phil@fsel.com> */

/* { 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();
}