summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/error1.C
blob: dd10d9053da561d504ad15dc860b5974d719dfaf (plain)
1
2
3
4
5
6
7
// { dg-do compile }

struct S
{
  void f () {} // { dg-error "with" "" }
  int f () { return 0; } // { dg-error "overloaded" "" }
};