aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr79804.c
blob: 10adb44667afa1e154eab61bcdd24b27de6e6db9 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR target/79804 */
/* { dg-do compile } */
/* { dg-options "" } */

void foo (void)
{
  register int r19 asm ("19");

  asm volatile ("# %0" : "=r"(r19));  /* { dg-error "invalid use of register" } */
}  /* { dg-error "cannot be used in asm here" } */