summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/using4.C
blob: 9d6e27e046513378554b002338f0b5703d0f2d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }

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

struct foo {
  void m();
};

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

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