aboutsummaryrefslogtreecommitdiff
path: root/ld/cdtest-func.cc
blob: 79000e33954ced68c47071eca9d60a1b393eb4b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// test program for Class Foo

#include "cdtest-foo.h"

static Foo static_foo( "static_foo"); 

Foo f()
{
    Foo x;
    return x;
}

void g()
{
    Foo other_foo1 = Foo( "other_foo1"), other_foo2 = Foo( "other_foo2");
    other_foo2 = other_foo1;
}