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] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-do link }
2
// { dg-additional-sources " linkage1-main.cc" }
3
 
4
// Copyright 2002 Free Software Foundation
5
 
6
// Derived by Alexandre Oliva  from code posted by
7
// Mark Mitchell 
8
 
9
// Verify that a member of a class is given global linkage when it's a
10
// member of a function whose name is taken from a typedef, by
11
// checking that another translation unit can call it.  We don't do
12
// the right things on functions, but we do on data members.
13
 
14
// { dg-bogus "" "" { xfail *-*-* } 0 }
15
 
16
typedef struct {
17
  void f();
18
} S;
19
 
20
void S::f() {}

powered by: WebSVN 2.1.0

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