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

struct S { S (); ~S (); int s[64]; } s;

void
foo ()
{
  __asm volatile ("" : "=r" (s) : : "memory");	// { dg-error "impossible constraint" }
						// { dg-error "must stay in memory" "" { target *-*-* } .-1 }
}