Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr52813.c

raw
1 /* Ensure that stack pointer cannot be an asm clobber. */
2 /* { dg-do compile { target { ! ia32 } } } */
3 /* { dg-options "-O2" } */
4
5 void
6 test1 (void)
7 {
8 asm volatile ("" : : : "%esp"); /* { dg-warning "listing the stack pointer register '%esp' in a clobber list is deprecated" } */
9 /* { dg-message "note: the value of the stack pointer after an 'asm' statement must be the same as it was before the statement" "" { target *-*-* } .-1 } */
10 }