2009-07-09 23:52:22 -07:00
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef HAVE_ASM_UNIQUE_OBJECT
|
|
|
|
# define S(s) _S (s)
|
|
|
|
# define _S(s) #s
|
|
|
|
|
|
|
|
asm (".data;"
|
2012-07-10 14:30:24 +02:00
|
|
|
".globl var\n"
|
2009-07-09 23:52:22 -07:00
|
|
|
".type var, " S (ASM_TYPE_DIRECTIVE_PREFIX) "gnu_unique_object\n"
|
|
|
|
".size var, 4\n"
|
|
|
|
"var:.zero 4\n"
|
|
|
|
".previous");
|
|
|
|
extern int var;
|
|
|
|
|
|
|
|
int
|
|
|
|
f (int *p)
|
|
|
|
{
|
|
|
|
return &var != p || *p != 1;
|
|
|
|
}
|
|
|
|
#endif
|