(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
torture/
pr84961-2.C
// PR c++/84961
// { dg-do compile }

short a;
volatile int b;
int c, d;

void
foo ()
{
  asm volatile ("" : : "m" (b = a));
}

void
bar ()
{
  asm volatile ("" : : "m" (++c, ++d, b = a));
}

void
baz ()
{
  asm volatile ("" : : "m" (--b));
}