summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/20060218-1.c
blob: b94cbd8c91d848a9e180e6143a3b6d6b2cad66d6 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */

void
foo (void)
{
  register int cc __asm ("cc"); /* { dg-error "invalid register name" } */
  __asm ("" : : "r" (cc) : "cc");
}