blob: 9b9edadc9feb76c681b6b3c4f9d7e1999ad6b236 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile { target *-*-solaris* } } */
/* { 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;
|