summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cdtest/cdtest-foo.h
blob: 0afe52a829f8a2d53d69a64273ccc576c5ede3c4 (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( char* message);
    Foo(const Foo&);
    Foo & operator= (const Foo&);
    ~Foo ();
};