summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/operator2.C
blob: 4b952bf11eb98a809504531e846eb4482386537f (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/28852
// { do-do compile }

struct A
{
  operator int&(int);  // { dg-error "void" }
};

A a;
int& i = a;  // { dg-error "initialization" }