This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C FE question: Is this test even valid?


> 
> 
> With the memory SSA patches we fail gcc.dg/noncompile/920507-1.c:
> 
> int *
> x(void)
> {
>  register int *a asm("unknown_register");  /* { dg-error "invalid
> register" } */
>  int *v[1] = {a};
>  return v[1];
> }

This should fail in the front-end really.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]