summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error31.C
blob: c9e8351bcf373daf92b66932c2010af247d953cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/35335
// { dg-do compile }
// { dg-options "" }
// { dg-bogus "not supported by" "" { target *-*-* } 0 }

struct A {};		// { dg-message "note: candidates are" }

void
foo ()
{
  A a;
  a = ({ { 1; } });	// { dg-error "no match for" }
}