diff options
Diffstat (limited to 'tracer/types/test.hxx')
-rw-r--r-- | tracer/types/test.hxx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tracer/types/test.hxx b/tracer/types/test.hxx new file mode 100644 index 0000000..965f133 --- /dev/null +++ b/tracer/types/test.hxx @@ -0,0 +1,34 @@ +// file : tracer/types/test.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef TEST_HXX +#define TEST_HXX + +#ifdef ODB_COMPILER +typedef int int_t; +typedef short num_t; +#else +typedef int num_t; +#endif + +typedef num_t num_type; + +#pragma odb object +struct object1 +{ + typedef int int_type; + + #pragma odb id + int_type id_; +}; + +#pragma odb object +struct object2 +{ + #pragma odb id + num_type num_; +}; + +#endif // TEST_HXX |