summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/qual1.C
blob: e4bae2315c244305cd33f87159f72691c2b2bbf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/28257
// { dg-do compile }

struct A
{
  int i;
  void foo()
  {
    int A::i = i;  // { dg-error "qualified" }
  }
};