aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/asm14.C
blob: f7f61aabd93d3406180debfe719651d946724274 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/85659
// { dg-do compile }

struct S { S (); ~S (); int s; };

void
foo (S &s)
{
  __asm volatile ("" : "+m,r" (s) : : "memory");
}