aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/misc9.C
blob: 7b9a86cbf4a3fe58a6a4ac3270c5af2523a8584c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// { dg-options "-Wall -pedantic" }
// GROUPS passed qualifiers
class bee {
 public:
  int bee::bar;		// { dg-error "extra" } there is an extra bee:: here
};

class foo {
 public:
  int bee::bar;		// { dg-error "invalid use" } you cannot do this
    int me();
};