OSDN Git Service

2009-12-15 Paolo Bonzini <bonzini@gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / error31.C
1 // PR c++/35335
2 // { dg-do compile }
3 // { dg-options "" }
4 // { dg-bogus "not supported by" "" { target *-*-* } 0 }
5
6 struct A {};            // { dg-message "note: candidate is" }
7
8 void
9 foo ()
10 {
11   A a;
12   a = ({ { 1; } });     // { dg-error "no match for" }
13 }