1 2 3 4 5 6 7 8 9 10
/* { dg-do compile } */ /* { dg-require-effective-target ilp32 } */ /* { dg-options "-ansi -pedantic" } */ int foo () { return 1; } register char *stack_ptr __asm ("%esp"); /* { dg-warning "file-scope declaration of 'stack_ptr' specifies 'register'" } */