summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pragma-re-1.c
blob: 78312e5705446219128af6bff85429da07c463c2 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-final { scan-assembler "bar" } } */
/* { dg-final { scan-assembler-not "foo" } } */

#ifndef __PRAGMA_REDEFINE_EXTNAME
#error 
#endif

#pragma redefine_extname foo bar
extern int foo(void);
int (*p)(void) = foo;