summaryrefslogtreecommitdiff
path: root/clang/test.cxx
blob: 68fe85f5085c9433f1bd58cf7fa14c4ea394054d (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
27
28
29
30
31
32
33
34
35
36
37
#include "test.hxx"

const int C::aS[] = {
    0
};

C::C()
    : nX(0),
      nY(0),
      nZ(0),
      pX(0)
{
}

C::~C()
{
    DELETEZ( pX );
}

int foo(int x)
{
    return x;
}

#define FOO(a) foo(a)

int main(void)
{
    C aC;
    aC.nX = 1;
    int y = aC.nX;
    FOO(aC.nX);
    OSL_ENSURE(aC.nX, "test");
    return 0;
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */