From 18e5490a1d36da346b079497bfb410edd6dd5ab8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Aug 2010 10:00:34 +0200 Subject: Test C++ type handling (anonymous types, aliasing) --- tracer/types/test.hxx | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tracer/types/test.hxx (limited to 'tracer/types/test.hxx') 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 +// 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 -- cgit v1.1