blob: 9b9edadc9feb76c681b6b3c4f9d7e1999ad6b236 [file] [log] [blame]
/* { 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;