summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/local1.C
blob: cfcffc90864bc6f7b090dfaaf7b46751cbd4276c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/28056

void f1();

namespace N {
  void f2();
}

class C {
  static void f3();
};

void foo() { 
  void ::f1();  // { dg-error "qualified" }
  void N::f2(); // { dg-error "qualified" }
  void C::f3(); // { dg-error "qualified" }
  void ::f4();  // { dg-error "qualified" }
}