Debian Codegraph @

gcc/testsuite/c-c++-common/toplevel-asm-8.c

raw
1 /* PR c/41045 */
2 /* { dg-do compile } */
3 /* { dg-options "-O0" } */
4
5 void
6 foo (void)
7 {
8 int m;
9 asm ("" : "=-m" (m)); /* { dg-error "'-' modifier used inside of a function" } */
10 asm ("" : : "-m" (m)); /* { dg-error "'-' modifier used inside of a function" } */
11 asm ("" : : "-i" (32)); /* { dg-error "'-' modifier used inside of a function" } */
12 asm ("" : : "-s" (foo)); /* { dg-error "'-' modifier used inside of a function" } */
13 }