summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/ld/testsuite/ld-cdtest/cdtest-foo.h
blob: f36efb7fc9abf4113ae7ebdde91b04919d1bd980 (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;
    static const int len = FOO_MSG_LEN;
    char message[len];
public: 
    static void init_foo ();
    static int nb_foos() { return foos; }
    Foo();
    Foo(const char* message);
    Foo(const Foo&);
    Foo & operator= (const Foo&);
    ~Foo ();
};