Commit acc0131c by Alexandre Oliva Committed by Alexandre Oliva

* linkage1.C, linkage1-main.cc: New test.

From-SVN: r55288
parent 7ab5c789
2002-07-06 Alexandre Oliva <aoliva@redhat.com>
* linkage1.C, linkage1-main.cc: New test.
2001-02-15 Alexandre Oliva <aoliva@redhat.com>
* friend1.C: New test.
......
// Copyright 2002 Free Software Foundation
// Derived by Alexandre Oliva <aoliva@redhat.com> from code posted by
// Mark Mitchell <mark@codesourcery.com>
typedef struct {
void f();
} S;
int main() {
S s;
s.f();
}
// Copyright 2002 Free Software Foundation
// Derived by Alexandre Oliva <aoliva@redhat.com> from code posted by
// Mark Mitchell <mark@codesourcery.com>
// Build don't run:
// Additional sources: linkage1-main.cc
// 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.
// excess errors test - XFAIL *-*-*
typedef struct {
void f();
} S;
void S::f() {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment