Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.oliva/linkage1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do link } // { dg-additional-sources " linkage1-main.cc" } // Copyright 2002 Free Software Foundation // Derived by Alexandre Oliva <aoliva@redhat.com> from code posted by // Mark Mitchell <mark@codesourcery.com> // Verify that a member of a class is given global linkage when it's a // member of a function whose name is taken from a typedef, by // checking that another translation unit can call it. We don't do // the right things on functions, but we do on data members. typedef struct { void f(); } S; void S::f() {}