OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.oliva/] [linkage1.C] - Rev 12

Compare with Previous | Blame | View Log

// { 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.

// { dg-bogus "" "" { xfail *-*-* } 0 }

typedef struct {
  void f();
} S;

void S::f() {}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.