1 /* { dg-do compile } */
2 /* { dg-options "-O0 -fno-omit-frame-pointer -fvar-tracking-assignments" } */
3 
4 register long *B asm ("ebp");
5 
6 long y = 20;
7 
8 void
bar(void)9 bar (void) /* { dg-error "frame pointer required, but reserved" } */
10 {
11   B = &y;
12 } /* { dg-error "bp cannot be used in asm here" } */
13