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

struct A {};		// { dg-message "operator=|no known conversion" }

void
foo ()
{
  A a;
  a = ({ { 1; } });	// { dg-error "no match for" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 12 }
}