8sa1-gcc/gcc/testsuite/gcc.dg/20010520-1.c
Mark Mitchell 0adc3c1971 c-decl.c (finish_decl): Don't set DECL_C_HARD_REGISTER for non-register variables.
* c-decl.c (finish_decl): Don't set DECL_C_HARD_REGISTER for
	non-register variables.
	* extend.texi: Document that asm-specifications do not make sense
	for non-static local variables.

From-SVN: r42403
2001-05-21 18:36:57 +00:00

11 lines
149 B
C

/* { dg-do compile { target i?86-*-* } } */
/* { dg-options "-w" } */
void f ()
{
int i __asm__ ("%eax");
__asm__ volatile ("" : "=a" (i));
}