diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/linkage1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/linkage1.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/linkage1.C b/gcc/testsuite/g++.dg/other/linkage1.C new file mode 100644 index 000000000..c2676bac1 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/linkage1.C @@ -0,0 +1,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; +}; |