aboutsummaryrefslogtreecommitdiff
path: root/ld/cdtest-foo.h
blob: 0ba2d37b2725b467b0318ce932e7d91d901222cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Class Foo

#pragma interface

#define FOOLISH_NUMBER -4711

#ifndef FOO_MSG_LEN
#define FOO_MSG_LEN 80
#endif
 
class Foo {
    static int foos;
    int i;
    const len = FOO_MSG_LEN;
    char message[len];
public: 
    static void init_foo ();
    static int nb_foos() { return foos; }
    Foo();
    Foo( char* message);
    Foo(const Foo&);
    Foo & operator= (const Foo&);
    ~Foo ();
};