summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cpp/30741-al.cpp
blob: 1c911bf206c8ec87cef0b1ee778b3c3dea7fc97b (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
/* ctest4 */
fm_status fm2000EventHandlingInitialize(fm_int sw);
fm_status fm2000MacTableOverflowStart(fm_int sw);
fm_bool   fm2000ProcessMATableEntry(fm_mac_table_work_list *pWork,
                                    fm_int                  sw,
                                    fm_int                  index,
                                    fm_thread *             event_handler,
                                    fm_uint32 *             numUpdates,
                                    fm_event **             event);


void foo()
{
    Logger log = new Logger();
    Logger log = new Logger();

    log.foo.bar    = 5;
    log.narf.sweat = "cat";

    for (i = 0 ; i < 5 ; i++)
    {
        bar(i);
    }
} /* foo */




int this_works(int x);
int bug(int); /* BUG: left-aligned */


typedef int fooman;
enum FLAGS
{
    FLAGS_decimal  = 1,    /* decimal */
    FLAGS_unsigned = 2,    /* u or U suffix */
    FLAGS_long     = 4,    /* l or L suffix */

};