summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/linkage1.C
blob: 4a0d8942e52d5160e8c8b05ef2ceca392910cfd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/26068

extern "C" auto int a; // { dg-error "linkage" }
extern "C" register int b; // { dg-error "linkage" }
extern "C" static void c(); // { dg-error "linkage" }
extern "C" extern void d(); // { dg-error "linkage" }
extern "C" mutable int e; // { dg-error "linkage" }

extern "C" {
  static void f();
}