summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C
blob: 960c3e0dd86b4d64212ec9985429d6b744c1cde9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do assemble  }
// 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);
}