annotate packages/language/cxx/ustl/current/tests/bvt26.cpp @ 3292:7f8e529b4d82 default tip

Fix FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF() so it works with negative offsets.
author vae
date Wed, 29 Apr 2015 23:31:48 +0000
parents 4885e0722884
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2904
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
1 // This file is part of the uSTL library, an STL implementation.
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
2 //
3152
4885e0722884 * include/*:
sergeig
parents: 2904
diff changeset
3 // Copyright (c) 2005 by Mike Sharov <msharov@users.sourceforge.net>
2904
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
4 // This file is free software, distributed under the MIT License.
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
5
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
6 #include "stdtest.h"
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
7
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
8 void TestMacros (void)
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
9 {
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
10 #define VARNAME(n) LARG_NUMBER(v,n)
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
11 #define VARDECL(n) VARNAME(n) = n
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
12 int COMMA_LIST (9, VARDECL);
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
13 cout << LIST(9, VARNAME, <<) << endl;
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
14 #define TO_STRING(n) #n
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
15 #define PRINT_N(n) REPEAT(n, TO_STRING) "\n"
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
16 cout << LIST(9, PRINT_N, <<);
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
17 }
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
18
88af52c64ce4 * ecos.db: Add uSTL library package record.
jld
parents:
diff changeset
19 StdBvtMain (TestMacros)