aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr85030.c
blob: ff41df6bb643c0ae0e3dd787737f0a80eefca1e4 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O1" } */
struct S { int c, *b, *e; };

void
foo ()
{
  struct S a;
  asm volatile ("" : "=rm" (a) : "0" (1)); /* { dg-error "inconsistent operand constraints in an 'asm'" } */
}