aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C
blob: be1df799082afd42c5705c322188198870b61655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Build don't link:
// prms-id: 13721

class A
{
  public :
  int a;
};
class B : public A
{
  public :
  void cmp(int a, int b) {}
  B(int a = 0)
    {
      cmp(A::a, a); //should not give warning
    }
};
int main(void)
{
  return(1);
}