summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/overload1.C
blob: 1b9415b0ed07bc674885c2632c847b87a7a0942a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// GROUPS passed overloading
class Foo
{
public:
  int f (void);
};

class Bar : public Foo
{
public:
      int f (int); // { dg-message "Bar::f|candidate expects" }
};

int main ()
{
  Bar b;

  b.f ();// { dg-error "no matching" } 
  // { dg-message "candidate" "candidate note" { target *-*-* } 19 }
  b.f (10);
}