URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 384 |
// { dg-do link }
|
// { dg-do link }
|
// { dg-additional-sources " linkage1-main.cc" }
|
// { dg-additional-sources " linkage1-main.cc" }
|
|
|
// Copyright 2002 Free Software Foundation
|
// Copyright 2002 Free Software Foundation
|
|
|
// Derived by Alexandre Oliva from code posted by
|
// Derived by Alexandre Oliva from code posted by
|
// Mark Mitchell
|
// Mark Mitchell
|
|
|
// Verify that a member of a class is given global linkage when it's a
|
// 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
|
// member of a function whose name is taken from a typedef, by
|
// checking that another translation unit can call it. We don't do
|
// checking that another translation unit can call it. We don't do
|
// the right things on functions, but we do on data members.
|
// the right things on functions, but we do on data members.
|
|
|
// { dg-bogus "" "" { xfail *-*-* } 0 }
|
// { dg-bogus "" "" { xfail *-*-* } 0 }
|
|
|
typedef struct {
|
typedef struct {
|
void f();
|
void f();
|
} S;
|
} S;
|
|
|
void S::f() {}
|
void S::f() {}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.