Back to index

cell-binutils  2.17cvs20070401
Functions | Variables
cdtest-main.cc File Reference
#include <assert.h>
#include "cdtest-foo.h"

Go to the source code of this file.

Functions

void __init_start ()
Foo f (void)
void g (void)
int main ()

Variables

static Foo static_foo ("static_foo")

Function Documentation

void __init_start ( )

Definition at line 23 of file cdtest-main.cc.

Here is the call graph for this function:

Foo f ( void  )

Definition at line 7 of file cdtest-bar.cc.

{
    Foo x;
    return x;
}
void g ( void  )

Definition at line 13 of file cdtest-bar.cc.

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

Definition at line 30 of file cdtest-main.cc.

{ 
    assert (Foo::nb_foos() == 2);
    Foo automatic_foo( "automatic_foo");
    Foo bla_foo = f();
    assert (Foo::nb_foos() == 4);
    g();
    assert (Foo::nb_foos() == 4);
    // `automatic_foo' and `bla_foo' are destructed here 
} 

Here is the call graph for this function:


Variable Documentation

Foo static_foo("static_foo") [static]