This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C FE question: Is this test even valid?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: dnovillo at redhat dot com (Diego Novillo)
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 19 May 2006 14:37:37 -0400 (EDT)
- Subject: 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