summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/asm1.C
blob: 333533526ba0bd6a5ab782c378abebd50bf15e75 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/6747
// { dg-do compile }
// { dg-options "-O" }

void foo()
{
  union { double d; char c[sizeof(double)]; } tmp;
  __asm__ ("" : "=m" (tmp.d));	// { dg-bogus "not directly addressable" "double sized union element should be addressible" { xfail xstormy16-*-* } }
}