blob: 6a72ad5134fc30cdd0930f0af7027a6ce808d24b [file] [log] [blame]
// PR c++/84961
// { dg-do compile }
short a;
volatile int b;
int c, d;
void
foo ()
{
asm volatile ("" : "=r" (b = a));
}
void
bar ()
{
asm volatile ("" : "=r" (++c, ++d, b = a));
}
void
baz ()
{
asm volatile ("" : "=r" (--b));
}