summaryrefslogtreecommitdiff
path: root/pjlib/src/pj++/compiletest.cpp
blob: 84e80aeb14b97203a0a1fae9acb51814fe961782 (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
38
39
40
41
42
43
44
/* $Header: /pjproject/pjlib/src/pj++/compiletest.cpp 4     8/24/05 10:29a Bennylp $ */
#include <pjlib++.hpp>


#if 0
struct MyNode
{
    PJ_DECL_LIST_MEMBER(struct MyNode)
    int data;
};

int test()
{
    typedef PJ_List<MyNode> MyList;
    MyList list;
    MyList::iterator it, end = list.end();

    for (it=list.begin(); it!=end; ++it) {
	MyNode *n = *it;
    }

    return 0;
}

int test_scan()
{
    PJ_Scanner scan;
    PJ_String s;
    PJ_CharSpec cs;

    scan.get(&cs, &s);
    return 0;
}

int test_scan_c()
{
    pj_scanner scan;
    pj_str_t s;
    pj_char_spec cs;

    pj_scan_get(&scan, cs, &s);
    return 0;
}
#endif