blob: 981b911eee265e6f1cee37945affe0b60aa22618 (
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
25
26
|
#include "foo.h"
#define MACRO_FOO \
{ void; }
#define MACRO_BAR(B) B
Foo::Foo() {}
void Foo::A() {}
void Foo::B(int i) {}
int Foo::C(int i) { return i; }
int Foo::D(bool b) const { return 1; }
void Foo::E() {}
int Foo::F(int i) { return i; }
void Foo::G(const char *fmt...) {}
Foo Foo::H() { return Foo(); }
void Foo::I() const { MACRO_FOO; }
Bar Foo::J() const { return MACRO_BAR(Bar()); }
Bar Foo::K(void *v) const { return Bar(); }
Bar &Foo::L() const {
Bar *b = new Bar();
return *b;
};
Bar *Foo::M() const {
Bar *b = new Bar();
return b;
};
|