[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / asm10.C
blobb95027c8cac5d60f7009c605660a6edd1e8ab936
1 // PR inline-asm/32109
2 // { dg-do compile }
3 // { dg-options "-O2" }
5 struct A { int i[3]; ~A (); };
6 struct A a;
7 struct B { struct A c; int i; B (); } b;
9 B::B ()
11   __asm ("" : : "r" (a));       // { dg-error "impossible constraint|non-memory input" }
12   __asm ("" : : "r" (b.c));     // { dg-error "impossible constraint|non-memory input" }
13   __asm ("" : : "r" (c));       // { dg-error "impossible constraint|non-memory input" }