view gcc/testsuite/g++.dg/parse/parens3.C @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
line wrap: on
line source

// 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;
}