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

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