summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/using4.C
blob: 218ffe2a85c331c7dd29cb3717a0fda9c214d5e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Build don't link:

// Based on a testcase by Martin Bachtold <martinb@coyotesystems.com>

// excess errors test - XFAIL *-*-*

struct foo {
  void m();
};

struct bar : foo {
  using foo::m;
  void m(int);
};

void f() {
  bar b;
  b.m();
  b.m(1);
}