diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-20 10:00:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-20 10:00:34 +0200 |
commit | 18e5490a1d36da346b079497bfb410edd6dd5ab8 (patch) | |
tree | bf4b947a02b67319a422c08b55d76cd83cbdf28b /tracer/types/test.hxx | |
parent | 1d2a288f2f9ae248b1e39ba7ecf7710adc718773 (diff) |
Test C++ type handling (anonymous types, aliasing)
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 |