1 /* PR target/79804 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4 
foo(void)5 void foo (void)
6 {
7   register int r20 asm ("20");
8 
9   asm volatile ("# %0" : "=r"(r20));  /* { dg-error "invalid use of register" } */
10 }  /* { dg-error "cannot be used in asm here" } */
11