blob: 60044751e47a9cb1a8217a33a23a80222ccd5f5a [file] [log] [blame]
// PR c++/67064
// { dg-options "-w" }
struct s {
int i;
};
#ifdef __hppa__
/* Register %r1 can't be fixed when generating PIC code. */
register struct s *reg __asm__( "4" );
#else
register struct s *reg __asm__( "1" );
#endif
int f(void)
{
int i;
i = reg->i;
i = (reg)->i;
return i;
}