summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/linkage1.C
blob: c2676bac1c284827c6afc0c45812453d5b9dd7da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile }

// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 9 Dec 2001 <nathan@nathan@codesourcery.com>

// PR 51
// This example snippet is from the ISO C++ standard, sect 7.5 para 4:

extern "C" typedef void FUNC_c();

class C {
  public:
  static FUNC_c* q;
};